export interface WindowWithOptionalFbq extends Omit { fbq?: FBClient; _fbq?: FBClient; } export type FBStandardEventType = 'PageView' | 'ViewContent' | 'Search' | 'AddToCart' | 'AddToWishlist' | 'InitiateCheckout' | 'AddPaymentInfo' | 'Purchase' | 'Lead' | 'CompleteRegistration' | 'Contact' | 'CustomizeProduct' | 'Donate' | 'FindLocation' | 'Schedule' | 'StartTrial' | 'SubmitApplication' | 'Subscribe'; export type FBNonStandardEventType = 'CustomEvent'; export type InitOptions = { agent?: string; }; export type EventOptions = { eventID?: string; eventSourceUrl?: string; }; export type UserData = { external_id?: string; em?: string; ph?: string; fn?: string; ln?: string; ge?: 'm' | 'f'; db?: string; ct?: string; st?: string; zp?: string; country?: string; fbp?: string; fbc?: string; }; export type FBEvent = { partner_agent: 'segment'; content_category?: string; content_ids?: string[]; content_name?: string; content_type?: string; contents?: { id: string; quantity: number; item_price?: number; [k: string]: unknown; }[]; currency?: string; delivery_category?: string; num_items?: number; value?: number; custom_data?: { [k: string]: unknown; }; }; export type FBClient = { disablePushState?: boolean; loaded?: boolean; version?: string; queue?: unknown[]; push?: FBClient; callMethod?: (...args: unknown[]) => void; (command: 'set', key: string, value: boolean, pixelId: string): void; (command: 'dataProcessingOptions', options: string[], country?: number, state?: number): void; (command: 'init', pixelId: string, userData?: UserData, options?: InitOptions): void; (command: 'trackSingle', pixelId: string, event: FBStandardEventType, params?: FBEvent, options?: EventOptions): void; (command: 'trackSingleCustom', pixelId: string, event: string, params?: FBEvent, options?: EventOptions): void; }; export type FBClientParamBuilder = { getNormalizedAndHashedPII: (value: string, piiType: PIIType) => string | undefined; processAndCollectAllParams: () => void; getFbc: () => string | undefined; getFbp: () => string | undefined; }; export type PIIType = 'email' | 'phone' | 'first_name' | 'last_name' | 'gender' | 'date_of_birth' | 'city' | 'state' | 'zip_code' | 'country' | 'external_id'; export type PIIParamName = 'em' | 'ph' | 'fn' | 'ln' | 'ge' | 'db' | 'ct' | 'st' | 'zp' | 'country' | 'external_id'; export declare const LDU: { readonly Disabled: { readonly key: "Disabled"; readonly state: undefined; readonly country: undefined; }; readonly GeolocationLogic: { readonly key: "GeolocationLogic"; readonly state: 0; readonly country: 0; }; readonly California: { readonly key: "California"; readonly state: 1000; readonly country: 1; }; readonly Colorado: { readonly key: "Colorado"; readonly state: 1001; readonly country: 1; }; readonly Connecticut: { readonly key: "Connecticut"; readonly state: 1002; readonly country: 1; }; readonly Florida: { readonly key: "Florida"; readonly state: 1003; readonly country: 1; }; readonly Oregon: { readonly key: "Oregon"; readonly state: 1004; readonly country: 1; }; readonly Texas: { readonly key: "Texas"; readonly state: 1005; readonly country: 1; }; readonly Montana: { readonly key: "Montana"; readonly state: 1006; readonly country: 1; }; readonly Delaware: { readonly key: "Delaware"; readonly state: 1007; readonly country: 1; }; readonly Nebraska: { readonly key: "Nebraska"; readonly state: 1008; readonly country: 1; }; readonly NewHampshire: { readonly key: "NewHampshire"; readonly state: 1009; readonly country: 1; }; readonly NewJersey: { readonly key: "NewJersey"; readonly state: 1010; readonly country: 1; }; readonly Minnesota: { readonly key: "Minnesota"; readonly state: 1011; readonly country: 1; }; }; export type LDU = typeof LDU[keyof typeof LDU];