//#region src/types.ts
/**
* Resolve an `AmplitudeOrAI` value to a plain `AmplitudeLike`.
*/
function resolveAmplitude(input) {
	if ("amplitude" in input && typeof input.amplitude === "object" && input.amplitude !== null && "track" in input.amplitude) return input.amplitude;
	if ("track" in input && typeof input.track === "function") return input;
	throw new Error("Expected an AmplitudeLike (with .track()) or AmplitudeAI (with .amplitude) instance. Pass either your AmplitudeAI instance or ai.amplitude.");
}

//#endregion
export { resolveAmplitude };
//# sourceMappingURL=types.js.map