export declare enum AvoEnv { Prod = "prod", Dev = "dev" } export interface CustomDestination { make?(env: AvoEnv, apiKey: string): void; logEvent?: (eventName: string, eventProperties: Record) => void; setUserProperties?: (userId: string, userProperties: Record) => void; identify?: (userId: string) => void; unidentify?: () => void; logPage?: (pageName: string, eventProperties: Record) => void; revenue?: (amount: number, eventProperties: Record) => void; setGroupProperties?: (groupType: string, groupId: string, groupProperties: Record) => void; addCurrentUserToGroup?: (groupType: string, groupId: string, groupProperties: Record) => void; logEventWithGroups?: (eventName: string, eventProperties: any, groupTypesToGroupIds: Record) => void; } export declare const avoInspectorApiKey = "Ay8YboOgDp8PmcCn09P2"; interface AvoInspector { } interface AvoLogger { logDebug(env: AvoEnv | null, message: string): boolean; logWarn(env: AvoEnv | null, message: string): boolean; logError(env: AvoEnv | null, error: string): boolean; } declare enum webDebuggerArea { BottomRight = "BottomRight", BottomLeft = "BottomLeft", TopRight = "TopRight", TopLeft = "TopLeft" } interface bottomRightParameters { bottom: number; right: number; } interface bottomLeftParameters { bottom: number; left: number; } interface topRightParameters { top: number; right: number; } interface topLeftParameters { top: number; left: number; } interface webDebuggerPosition { position: webDebuggerArea; top?: number; right?: number; bottom?: number; left?: number; } interface webDebuggerOptions { position?: webDebuggerPosition; } interface WebDebuggerPositionSetter { BottomRight(p: bottomRightParameters): webDebuggerPosition; BottomLeft(p: bottomLeftParameters): webDebuggerPosition; TopRight(p: topRightParameters): webDebuggerPosition; TopLeft(p: topLeftParameters): webDebuggerPosition; } export declare const WebDebuggerPosition: WebDebuggerPositionSetter; export interface PageObject { pageTitle: string; pageLocation: string; pageReferrer: string; } export declare function setSystemProperties(properties: { pixelId: string; env: string; }): void; export declare function initAvo(options: { env: AvoEnv; webDebugger?: boolean; webDebuggerOptions?: webDebuggerOptions; strict?: boolean; noop?: boolean; reportFailureAs?: 'error' | 'warn' | 'log'; inspector?: AvoInspector; avoLogger?: AvoLogger; }, systemProperties: { pixelId: string; env: string; }, destinationOptions: any, PixelEndpointDestination: CustomDestination): void; export declare function setAvoLogger(avoLogger: AvoLogger | null): void; export interface PageViewedProperties { pageObject?: PageObject; } /** * $page_viewed: each time the page loads or the browser history state is changed by the active site * * @param properties the properties associatied with this event * @param properties.pageObject: The property group of page * * */ export declare function pageViewed(properties: PageViewedProperties): void; export interface PageViewedBtpProperties { pageObject?: PageObject; trackingPageId: string; } /** * $page_viewed: each time the page loads or the browser history state is changed by the active site, variant description: Branded Tracking Page page view * * @param properties the properties associatied with this event * @param properties.pageObject: The property group of page * @param properties.trackingPageId: no description * * */ export declare function pageViewedBtp(properties: PageViewedBtpProperties): void; declare const _default: { AvoEnv: typeof AvoEnv; initAvo: typeof initAvo; setSystemProperties: typeof setSystemProperties; avoInspectorApiKey: string; pageViewed: typeof pageViewed; pageViewedBtp: typeof pageViewedBtp; }; export default _default;