import * as _walkeros_core_dev from '@walkeros/core/dev'; import { z } from '@walkeros/core/dev'; import { WalkerOS, Flow, Trigger } from '@walkeros/core'; declare const HttpMethod: z.ZodEnum<{ GET: "GET"; POST: "POST"; PUT: "PUT"; PATCH: "PATCH"; DELETE: "DELETE"; OPTIONS: "OPTIONS"; HEAD: "HEAD"; }>; declare const CorsOrigin: z.ZodUnion, z.ZodLiteral<"*">]>; declare const CorsOptionsSchema: z.ZodObject<{ origin: z.ZodOptional, z.ZodLiteral<"*">]>>; methods: z.ZodOptional>>; headers: z.ZodOptional>; credentials: z.ZodOptional; maxAge: z.ZodOptional; }, z.core.$strip>; type CorsOptions = z.infer; /** * HTTP methods supported for route configuration. * OPTIONS is always handled for CORS (not user-configurable per route). */ declare const RouteMethod: z.ZodEnum<{ GET: "GET"; POST: "POST"; }>; /** * Route configuration for multi-path support. */ declare const RouteConfigSchema: z.ZodObject<{ path: z.ZodString; methods: z.ZodOptional>>; }, z.core.$strip>; /** * Fetch source settings schema. */ declare const SettingsSchema: z.ZodObject<{ path: z.ZodOptional; paths: z.ZodOptional>>; }, z.core.$strip>]>>>; cors: z.ZodDefault, z.ZodLiteral<"*">]>>; methods: z.ZodOptional>>; headers: z.ZodOptional>; credentials: z.ZodOptional; maxAge: z.ZodOptional; }, z.core.$strip>]>>; maxRequestSize: z.ZodDefault; maxBatchSize: z.ZodDefault; }, z.core.$strip>; type Settings = z.infer; declare const EventSchema: z.ZodObject<{ name: z.ZodString; data: z.ZodOptional]>>>; context: z.ZodOptional]>, z.ZodNumber], null>>>; globals: z.ZodOptional]>>>; custom: z.ZodOptional]>>>; user: z.ZodOptional; device: z.ZodOptional; session: z.ZodOptional; email: z.ZodOptional; hash: z.ZodOptional; }, z.core.$loose>>; nested: z.ZodOptional>>>; consent: z.ZodOptional>; id: z.ZodOptional; trigger: z.ZodOptional; entity: z.ZodOptional; action: z.ZodOptional; timestamp: z.ZodOptional; timing: z.ZodOptional; source: z.ZodOptional; version: z.ZodOptional; schema: z.ZodOptional; count: z.ZodOptional; trace: z.ZodOptional; url: z.ZodOptional; referrer: z.ZodOptional; }, z.core.$loose>>; }, z.core.$loose>; type ValidatedEvent = z.infer; declare const settings: _walkeros_core_dev.JSONSchema; type index$1_CorsOptions = CorsOptions; declare const index$1_CorsOptionsSchema: typeof CorsOptionsSchema; declare const index$1_CorsOrigin: typeof CorsOrigin; declare const index$1_EventSchema: typeof EventSchema; declare const index$1_HttpMethod: typeof HttpMethod; declare const index$1_RouteConfigSchema: typeof RouteConfigSchema; declare const index$1_RouteMethod: typeof RouteMethod; type index$1_Settings = Settings; declare const index$1_SettingsSchema: typeof SettingsSchema; type index$1_ValidatedEvent = ValidatedEvent; declare const index$1_settings: typeof settings; declare namespace index$1 { export { type index$1_CorsOptions as CorsOptions, index$1_CorsOptionsSchema as CorsOptionsSchema, index$1_CorsOrigin as CorsOrigin, index$1_EventSchema as EventSchema, index$1_HttpMethod as HttpMethod, index$1_RouteConfigSchema as RouteConfigSchema, index$1_RouteMethod as RouteMethod, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, type index$1_ValidatedEvent as ValidatedEvent, index$1_settings as settings }; } /** * Example walkerOS events that HTTP clients send to this source. * These are the CONTRACT - tests verify implementation handles these inputs. */ declare const pageView: WalkerOS.DeepPartialEvent; declare const productAdd: WalkerOS.DeepPartialEvent; declare const completeEvent: WalkerOS.DeepPartialEvent; declare const minimal: WalkerOS.DeepPartialEvent; declare const batch: WalkerOS.DeepPartialEvent[]; declare const inputs_batch: typeof batch; declare const inputs_completeEvent: typeof completeEvent; declare const inputs_minimal: typeof minimal; declare const inputs_pageView: typeof pageView; declare const inputs_productAdd: typeof productAdd; declare namespace inputs { export { inputs_batch as batch, inputs_completeEvent as completeEvent, inputs_minimal as minimal, inputs_pageView as pageView, inputs_productAdd as productAdd }; } /** * HTTP request examples for testing the fetch source. * Shows what external HTTP clients will send. */ declare const validPostRequest: { method: string; url: string; headers: { 'Content-Type': string; }; body: string; }; declare const batchPostRequest: { method: string; url: string; headers: { 'Content-Type': string; }; body: string; }; declare const pixelGetRequest: { method: string; url: string; }; declare const healthCheckRequest: { method: string; url: string; }; declare const optionsRequest: { method: string; url: string; headers: { Origin: string; }; }; declare const invalidJsonRequest: { method: string; url: string; headers: { 'Content-Type': string; }; body: string; }; declare const oversizedRequest: { method: string; url: string; headers: { 'Content-Type': string; }; body: string; }; declare const requests_batchPostRequest: typeof batchPostRequest; declare const requests_healthCheckRequest: typeof healthCheckRequest; declare const requests_invalidJsonRequest: typeof invalidJsonRequest; declare const requests_optionsRequest: typeof optionsRequest; declare const requests_oversizedRequest: typeof oversizedRequest; declare const requests_pixelGetRequest: typeof pixelGetRequest; declare const requests_validPostRequest: typeof validPostRequest; declare namespace requests { export { requests_batchPostRequest as batchPostRequest, requests_healthCheckRequest as healthCheckRequest, requests_invalidJsonRequest as invalidJsonRequest, requests_optionsRequest as optionsRequest, requests_oversizedRequest as oversizedRequest, requests_pixelGetRequest as pixelGetRequest, requests_validPostRequest as validPostRequest }; } declare const postEvent: Flow.StepExample; declare const batchRequest: Flow.StepExample; declare const pixelGet: Flow.StepExample; declare const step_batchRequest: typeof batchRequest; declare const step_pixelGet: typeof pixelGet; declare const step_postEvent: typeof postEvent; declare namespace step { export { step_batchRequest as batchRequest, step_pixelGet as pixelGet, step_postEvent as postEvent }; } interface Content { method: string; url: string; body?: unknown; headers?: Record; } interface Result { status: number; body: unknown; headers: Record; } declare const createTrigger: Trigger.CreateFn; declare const index_createTrigger: typeof createTrigger; declare const index_inputs: typeof inputs; declare const index_requests: typeof requests; declare const index_step: typeof step; declare namespace index { export { index_createTrigger as createTrigger, index_inputs as inputs, index_requests as requests, index_step as step }; } export { index as examples, index$1 as schemas };