import type { RunGroup, RunInstance } from "@skaile/workspaces/types"; /** * Which queued instances may spawn now. Ordered by priority descending, then * FIFO by receivedAt (instanceId tiebreak), bounded by maxParallel minus * slot-occupying instances. Slot-occupying = spawning | running. Gate-parked * instances (awaiting_approval / awaiting_input) do NOT hold slots - hosts * hibernate them, so a slow approver cannot stall intake. * * An absent priority is 0, so a queue of inputs that never set one keeps the * exact FIFO order it had before priority existed. * * receivedAt must be UTC ISO 8601 (Z-suffixed): ordering is lexicographic, * so non-UTC offsets would misorder the queue. */ export declare function admit(group: RunGroup, instances: RunInstance[]): RunInstance[]; //# sourceMappingURL=admit.d.ts.map