import type { SchedulingPolicy, TaskQueueSummary } from './task-queue-types.ts'; /** * Read-only snapshot of the fields {@link buildQueueSummaries} needs. Captured * synchronously by {@link TaskQueue.captureSnapshot} so all reads happen within * a single turn of the event loop — no locks required. * * This type is internal to the server package and must not be re-exported from * the public barrel. */ export type TaskQueueSnapshot = { /** Shallow copy of queue → pending task metadata (only `enqueuedAt` is read). */ pending: ReadonlyMap>; /** Shallow copy of queue → waiter array (only `length` is read). */ waiters: ReadonlyMap>; /** Scheduling policy the queue was configured with. */ schedulingPolicy: SchedulingPolicy; }; /** * Build the sorted per-queue summary list from a synchronously captured * snapshot. Pure function: no live registry references, no side effects. * * Returns one entry per queue name appearing in either `pending` or `waiters`, * sorted ascending by queue name so responses are stable. */ export declare function buildQueueSummaries(snapshot: TaskQueueSnapshot): TaskQueueSummary[];