import { Source } from '@walkeros/core'; import { z } from '@walkeros/core/dev'; 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$1 = z.infer; /** * 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>; declare module '@walkeros/core' { interface SourceMap { fetch: { type: 'fetch'; platform: 'server'; }; } } type Settings = z.infer; type CorsOptions = z.infer; type RouteConfig = z.infer; type RouteMethod = 'GET' | 'POST'; type InitSettings = Partial; interface Mapping { } type Push = (request: Request) => Response | Promise; interface Env extends Source.Env { request?: Request; } type Types = Source.Types; type Config = Source.Config; type PartialConfig = Source.PartialConfig; interface FetchSource extends Omit, 'push'> { push: Push; } interface EventResponse { success: boolean; id?: string; timestamp?: number; error?: string; } type types_Config = Config; type types_CorsOptions = CorsOptions; type types_Env = Env; type types_EventResponse = EventResponse; type types_FetchSource = FetchSource; type types_InitSettings = InitSettings; type types_Mapping = Mapping; type types_PartialConfig = PartialConfig; type types_Push = Push; type types_RouteConfig = RouteConfig; type types_RouteMethod = RouteMethod; type types_Settings = Settings; type types_Types = Types; declare namespace types { export type { types_Config as Config, types_CorsOptions as CorsOptions, types_Env as Env, types_EventResponse as EventResponse, types_FetchSource as FetchSource, types_InitSettings as InitSettings, types_Mapping as Mapping, types_PartialConfig as PartialConfig, types_Push as Push, types_RouteConfig as RouteConfig, types_RouteMethod as RouteMethod, types_Settings as Settings, types_Types as Types }; } declare function createCorsHeaders(corsConfig?: boolean | CorsOptions$1, requestOrigin?: string | null): Headers; declare const TRANSPARENT_GIF_BASE64 = "R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"; declare function createPixelResponse(corsHeaders?: Headers): Response; declare function createJsonResponse(body: unknown, status?: number, corsHeaders?: Headers): Response; /** * Match a request pathname against a route pattern. * Supports exact matches and wildcard patterns (e.g., /api/*). */ declare function matchPath(requestPath: string, pattern: string): boolean; declare const sourceFetch: Source.Init; export { type Config, type CorsOptions, type Env, type EventResponse, type FetchSource, type InitSettings, type Mapping, type PartialConfig, type Push, type RouteConfig, type RouteMethod, type Settings, types as SourceFetch, TRANSPARENT_GIF_BASE64, type Types, createCorsHeaders, createJsonResponse, createPixelResponse, sourceFetch as default, matchPath, sourceFetch };