import type { IncomingMessage, ServerResponse } from 'node:http'; import { type JobScope, type JobSnapshot } from './job-store.js'; import type { createOfflineDecisionJobService } from './job-service.js'; export interface DecisionJobHttpOptions { /** Deliberate opt-in. No global route or listener is registered by this module. */ enabled: true; service: ReturnType; authenticate: (request: IncomingMessage) => Promise; /** Authorize queue admission only; this callback must not execute or dispatch provider work. */ authorizeQueue: (actor: JobScope, snapshot: JobSnapshot) => Promise; /** Host D10 hold/erasure controller; must call gateway.remove and independent lifecycle eraser. */ deleteJob: (actor: JobScope, snapshot: JobSnapshot) => Promise; authorizeResult: (actor: JobScope, snapshot: JobSnapshot, itemId: string) => Promise; maxBodyBytes: number; } /** Explicitly mounted host HTTP boundary. All identity comes from authenticate(), never JSON. */ export declare function createDecisionJobHttpHandler(options: DecisionJobHttpOptions): (req: IncomingMessage, res: ServerResponse) => Promise; //# sourceMappingURL=job-http.d.ts.map