import * as _walkeros_core_dev from '@walkeros/core/dev'; import { z } from '@walkeros/core/dev'; import { Source, Flow, Trigger } from '@walkeros/core'; /** * JavaScript variable name * Used for dataLayer variable naming */ declare const JavaScriptVarName: z.ZodString; /** * Event prefix * Used for filtering dataLayer events */ declare const EventPrefix: z.ZodString; /** * DataLayer source settings schema */ declare const SettingsSchema: z.ZodObject<{ name: z.ZodOptional>; prefix: z.ZodOptional>; filter: z.ZodOptional; }, z.core.$strip>; type Settings = z.infer; /** * dataLayer source rule.settings — describes how to translate an incoming * dataLayer push (gtag command, ecommerce event, etc.) into walker command * arguments. `command` is a walkerOS Mapping.Value evaluated against the raw * dataLayer arguments at capture time. */ declare const MappingSchema: z.ZodObject<{ command: 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_EventPrefix: typeof EventPrefix; declare const index$1_JavaScriptVarName: typeof JavaScriptVarName; type index$1_Mapping = Mapping; declare const index$1_MappingSchema: typeof MappingSchema; type index$1_Settings = Settings; declare const index$1_SettingsSchema: typeof SettingsSchema; declare const index$1_mapping: typeof mapping; declare const index$1_settings: typeof settings; declare namespace index$1 { export { index$1_EventPrefix as EventPrefix, index$1_JavaScriptVarName as JavaScriptVarName, type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_mapping as mapping, index$1_settings as settings }; } /** * Environment interface for dataLayer source */ interface DataLayerEnv extends Source.BaseEnv { window?: typeof window; } /** * Standard mock environment for testing dataLayer source * * Use this for testing dataLayer.push interception and event transformation * without requiring a real browser environment. */ declare const push: DataLayerEnv; declare const env_push: typeof push; declare namespace env { export { env_push as push }; } declare const gtagPurchase: Flow.StepExample; declare const consentUpdate: Flow.StepExample; declare const gtagAddToCart: Flow.StepExample; declare const gtagViewItem: Flow.StepExample; declare const directEvent: Flow.StepExample; declare const step_consentUpdate: typeof consentUpdate; declare const step_directEvent: typeof directEvent; declare const step_gtagAddToCart: typeof gtagAddToCart; declare const step_gtagPurchase: typeof gtagPurchase; declare const step_gtagViewItem: typeof gtagViewItem; declare namespace step { export { step_consentUpdate as consentUpdate, step_directEvent as directEvent, step_gtagAddToCart as gtagAddToCart, step_gtagPurchase as gtagPurchase, step_gtagViewItem as gtagViewItem }; } declare const createTrigger: Trigger.CreateFn; /** Pushes step example input to window.dataLayer after source init. */ declare const trigger: (input: unknown, env: Record) => void; declare const index_createTrigger: typeof createTrigger; declare const index_env: typeof env; declare const index_step: typeof step; declare const index_trigger: typeof trigger; declare namespace index { export { index_createTrigger as createTrigger, index_env as env, index_step as step, index_trigger as trigger }; } export { index as examples, index$1 as schemas };