import { DecisionJobGateway } from './job-gateway.js'; import type { DecisionEvaluationRequest, DecisionReceiptStore } from './types.js'; import type { DecisionJobItem } from './job-contract.js'; import type { JobReservation } from './job-worker.js'; import { FileJobPayloadStore } from './job-payload-store.js'; import { type JobQuotaPolicy } from './job-quota.js'; import { DecisionJobRuntime } from './job-runtime.js'; import { OfflineJobScheduler } from './job-scheduler.js'; import { OfflineJobWorker } from './job-worker.js'; import { type JobScope, type JobSnapshot } from './job-store.js'; import type { DecisionTelemetryHook } from './telemetry/types.js'; import { type DecisionLifecyclePolicy } from './lifecycle.js'; export interface OfflineDecisionJobServiceConfig { directory: string; /** Host-owned secret, retrieved at runtime; never put in a job or model state. */ handleKey: Buffer; payloadKey: Buffer; payloadMaxItemBytes: number; now?: () => number; quota: JobQuotaPolicy; lifecyclePolicy: DecisionLifecyclePolicy; polls: { windowMs: number; perPrincipal: number; perProject: number; maxLanes: number; }; scheduler: { concurrency: number; maxQueuedItems: number; }; /** Independent D10 lifecycle authority; backed-up local markers are not sufficient. */ externallyDeleted: (scope: JobScope, id: string) => Promise; authorizeExport: (actor: JobScope, snapshot: JobSnapshot) => Promise; telemetry?: DecisionTelemetryHook; } /** Disabled-by-default offline assembly. Host must supply authenticated actors and admitted item executors. */ export declare function createOfflineDecisionJobService(config: OfflineDecisionJobServiceConfig): { gateway: DecisionJobGateway; runtime: DecisionJobRuntime; worker: OfflineJobWorker; scheduler: OfflineJobScheduler; payloads: FileJobPayloadStore; eraseJob: (scope: JobScope, id: string) => Promise; sweepExpired: () => Promise; runAdmittedItem: (actor: JobScope, id: string, itemId: string, requestFor: (item: Readonly, input: unknown, signal: AbortSignal) => DecisionEvaluationRequest, reservation: JobReservation) => Promise; materializeResult: (actor: JobScope, id: string, itemId: string, receipts: DecisionReceiptStore) => Promise; }; //# sourceMappingURL=job-service.d.ts.map