import { z } from "zod/v4"; export declare const WORKER_QUEUE_VERSION = "v2"; export declare const SCHEDULED_WORKER_QUEUE_SUFFIX = ":scheduled"; /** The dispatch class of a v2 worker queue. Kept separate from the legacy dequeue class. */ export declare const WorkerQueueDispatchClass: z.ZodEnum<{ ondemand: "ondemand"; scheduled: "scheduled"; }>; export type WorkerQueueDispatchClass = z.infer; export declare const WorkerQueuePhase: z.ZodEnum<{ fresh: "fresh"; restore: "restore"; }>; export type WorkerQueuePhase = z.infer; export declare const WorkerQueueCompatibility: z.ZodEnum<{ any: "any"; compute: "compute"; container: "container"; }>; export type WorkerQueueCompatibility = z.infer; export declare const WorkerQueueChannel: z.ZodEnum<{ canary: "canary"; stable: "stable"; }>; export type WorkerQueueChannel = z.infer; export declare const WorkerQueueSubscription: z.ZodObject<{ class: z.ZodEnum<{ ondemand: "ondemand"; scheduled: "scheduled"; }>; phase: z.ZodEnum<{ fresh: "fresh"; restore: "restore"; }>; compat: z.ZodEnum<{ any: "any"; compute: "compute"; container: "container"; }>; channel: z.ZodEnum<{ canary: "canary"; stable: "stable"; }>; }, z.core.$strict>; export type WorkerQueueSubscription = z.infer; export declare const MAX_WORKER_QUEUE_SUBSCRIPTIONS: number; export declare const WorkerQueueSubscriptions: z.ZodArray; phase: z.ZodEnum<{ fresh: "fresh"; restore: "restore"; }>; compat: z.ZodEnum<{ any: "any"; compute: "compute"; container: "container"; }>; channel: z.ZodEnum<{ canary: "canary"; stable: "stable"; }>; }, z.core.$strict>>; export declare const WeightedWorkerQueueSubscription: z.ZodObject<{ class: z.ZodEnum<{ ondemand: "ondemand"; scheduled: "scheduled"; }>; phase: z.ZodEnum<{ fresh: "fresh"; restore: "restore"; }>; compat: z.ZodEnum<{ any: "any"; compute: "compute"; container: "container"; }>; channel: z.ZodEnum<{ canary: "canary"; stable: "stable"; }>; weight: z.ZodOptional; }, z.core.$strict>; export type WeightedWorkerQueueSubscription = z.infer; export declare const WeightedWorkerQueueSubscriptions: z.ZodArray; phase: z.ZodEnum<{ fresh: "fresh"; restore: "restore"; }>; compat: z.ZodEnum<{ any: "any"; compute: "compute"; container: "container"; }>; channel: z.ZodEnum<{ canary: "canary"; stable: "stable"; }>; weight: z.ZodOptional; }, z.core.$strict>>; export type WeightedWorkerQueueSubscriptions = z.infer; export type WorkerQueue = { region: string; version: "legacy"; class: WorkerQueueDispatchClass; } | ({ region: string; version: typeof WORKER_QUEUE_VERSION; } & WorkerQueueSubscription); export declare function isV2WorkerQueue(name: string): boolean; export declare function parseWorkerQueue(name: string): WorkerQueue; export declare function formatWorkerQueue(queue: WorkerQueue): string; export declare function legacyScheduledWorkerQueue(name: string): string; export declare function restoreWorkerQueue(name: string, compat: Exclude): string; export declare function scheduledWorkerQueue(name: string): string;