import * as _walkeros_core_dev from '@walkeros/core/dev'; import { z } from '@walkeros/core/dev'; import { DestinationWeb } from '@walkeros/web-core'; import { Flow } from '@walkeros/core'; /** * Meta Pixel ID * Must be a numeric string (Facebook Pixel IDs are numeric) */ declare const PixelId: z.ZodString; /** * Meta Pixel Standard Event Names * https://developers.facebook.com/docs/meta-pixel/reference */ declare const StandardEventName: z.ZodEnum<{ PageView: "PageView"; AddPaymentInfo: "AddPaymentInfo"; AddToCart: "AddToCart"; AddToWishlist: "AddToWishlist"; CompleteRegistration: "CompleteRegistration"; Contact: "Contact"; CustomizeProduct: "CustomizeProduct"; Donate: "Donate"; FindLocation: "FindLocation"; InitiateCheckout: "InitiateCheckout"; Lead: "Lead"; Purchase: "Purchase"; Schedule: "Schedule"; Search: "Search"; StartTrial: "StartTrial"; SubmitApplication: "SubmitApplication"; Subscribe: "Subscribe"; ViewContent: "ViewContent"; }>; /** * Custom Event Name * Any string for custom tracking */ declare const CustomEventName: z.ZodString; declare const SettingsSchema: z.ZodObject<{ pixelId: z.ZodString; }, z.core.$strip>; type Settings = z.infer; declare const MappingSchema: z.ZodObject<{ track: z.ZodOptional>; trackCustom: z.ZodOptional; }, z.core.$strip>; type Mapping = z.infer; declare const settings: _walkeros_core_dev.JSONSchema; declare const mapping: _walkeros_core_dev.JSONSchema; declare const index$1_CustomEventName: typeof CustomEventName; type index$1_Mapping = Mapping; declare const index$1_MappingSchema: typeof MappingSchema; declare const index$1_PixelId: typeof PixelId; type index$1_Settings = Settings; declare const index$1_SettingsSchema: typeof SettingsSchema; declare const index$1_StandardEventName: typeof StandardEventName; declare const index$1_mapping: typeof mapping; declare const index$1_settings: typeof settings; declare namespace index$1 { export { index$1_CustomEventName as CustomEventName, type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, index$1_PixelId as PixelId, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_StandardEventName as StandardEventName, index$1_mapping as mapping, index$1_settings as settings }; } declare global { interface Window { _fbq?: facebook.Pixel.Event; fbq?: facebook.Pixel.Event; } } interface Env extends DestinationWeb.Env { window: { fbq?: facebook.Pixel.Event; _fbq?: facebook.Pixel.Event; }; document: { createElement: (tagName: string) => { src: string; async: boolean; setAttribute: (name: string, value: string) => void; removeAttribute: (name: string) => void; }; head: { appendChild: (node: unknown) => void; }; }; } declare const init$1: Env | undefined; declare const push: Env; /** * Simulation tracking paths * Specifies which function calls to track during simulation */ declare const simulation: string[]; declare const env_push: typeof push; declare const env_simulation: typeof simulation; declare namespace env { export { init$1 as init, env_push as push, env_simulation as simulation }; } /** * Destination bootstrap. * Given the canonical settings, init loads the Meta Pixel script and calls * fbq('init', pixelId). Reproduce by passing the same settings to * `startFlow` as the destination config. */ declare const init: Flow.StepExample; declare const purchase: Flow.StepExample; declare const addToCart: Flow.StepExample; declare const viewContent: Flow.StepExample; declare const initiateCheckout: Flow.StepExample; declare const pageView: Flow.StepExample; declare const customEventWithTrackCustom: Flow.StepExample; declare const step_addToCart: typeof addToCart; declare const step_customEventWithTrackCustom: typeof customEventWithTrackCustom; declare const step_init: typeof init; declare const step_initiateCheckout: typeof initiateCheckout; declare const step_pageView: typeof pageView; declare const step_purchase: typeof purchase; declare const step_viewContent: typeof viewContent; declare namespace step { export { step_addToCart as addToCart, step_customEventWithTrackCustom as customEventWithTrackCustom, step_init as init, step_initiateCheckout as initiateCheckout, step_pageView as pageView, step_purchase as purchase, step_viewContent as viewContent }; } declare const index_env: typeof env; declare const index_step: typeof step; declare namespace index { export { index_env as env, index_step as step }; } export { index as examples, index$1 as schemas };