import { Effect } from "effect";
import * as HttpClient from "effect/unstable/http/HttpClient";
import { DdfConfig } from "./client.js";
export declare const DEFAULT_CREA_ANALYTICS_URL = "https://analytics.crea.ca/LogEvents.svc/LogEvents";
export type AnalyticsEventType = "View" | "Click" | "email_realtor";
export type AnalyticsLanguageID = 1 | 2;
export interface AnalyticsLogEventInput {
readonly ListingID: string | number;
readonly DestinationID: string | number;
readonly EventType: AnalyticsEventType;
readonly UUID: string;
readonly IP?: string;
readonly ReferralURL?: string;
readonly LanguageID?: AnalyticsLanguageID;
}
declare const DdfAnalyticsTransportError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
readonly _tag: "DdfAnalyticsTransportError";
} & Readonly;
export declare class DdfAnalyticsTransportError extends DdfAnalyticsTransportError_base<{
readonly url: string;
readonly cause: unknown;
}> {
get message(): string;
}
export declare const buildAnalyticsLogEventUrl: (input: AnalyticsLogEventInput, analyticsUrl?: string) => string;
export declare const logAnalyticsEvent: (input: AnalyticsLogEventInput) => Effect.Effect;
export {};
//# sourceMappingURL=analytics.d.ts.map