import type { DecisionJob, DecisionJobItem } from './job-contract.js'; import { DecisionJobRuntime } from './job-runtime.js'; import { type JobScope, type JobSnapshot } from './job-store.js'; /** Host-only object authorization boundary. The key and actor come from the trusted host, never a request body. */ export declare class DecisionJobGateway { private readonly runtime; private readonly key; private readonly now; private readonly pollGate?; private readonly capabilities?; private readonly admitJob?; constructor(runtime: DecisionJobRuntime, key: Buffer, now?: () => number, pollGate?: ((actor: JobScope) => Promise) | undefined, capabilities?: { listSnapshots: () => Promise; authorizeExport: (actor: JobScope, snapshot: JobSnapshot) => Promise; } | undefined, admitJob?: ((job: DecisionJob) => void) | undefined); submit(actor: JobScope, job: DecisionJob): Promise<{ handle: string; snapshot: JobSnapshot; }>; poll(actor: JobScope, handle: string): Promise; items(actor: JobScope, handle: string, offset?: number, limit?: number): Promise; cancel(actor: JobScope, handle: string): Promise; retry(actor: JobScope, handle: string, itemId: string): Promise; remove(actor: JobScope, handle: string): Promise; export(actor: JobScope, handle: string): Promise; list(actor: JobScope, cursor?: string, limit?: number): Promise<{ handles: string[]; next: string | null; } | null>; private seal; private encrypt; private open; private unseal; } //# sourceMappingURL=job-gateway.d.ts.map