export interface TaskResource { id: string; title: string; path: string; sha256: string; } export interface TaskOperation { id: string; title: string; maxUses: number; /** Operator-chosen time limit for this request, 1..3600 s (default 10). A long job (a test run) gets minutes; * the model still supplies only the ID. Timeout and cancellation consume the budget like any failure. */ timeoutSeconds?: number; request: { method: string; url: string; headers?: Record; body?: string; bearerEnv?: string; }; } export interface TaskManifest { version: 1; taskId: string; expiresAt: string; transport?: 'https' | 'loopback-test'; resources: TaskResource[]; operations: TaskOperation[]; runs?: TaskRun[]; } export interface TaskRun { id: string; title: string; operations: string[]; } export type TaskApproval = (message: string, signal?: AbortSignal) => Promise; /** Default and ceiling for one request. Long jobs need an explicit timeoutSeconds in the pinned manifest. */ export declare const DEFAULT_TIMEOUT_SECONDS = 10; export declare const MAX_TIMEOUT_SECONDS = 3600; export declare function parseTaskManifest(text: string): TaskManifest; export declare const TASK_TOOLS: ({ name: string; description: string; inputSchema: { type: string; properties: { id?: undefined; }; additionalProperties: boolean; required?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { id: { type: string; }; }; required: string[]; additionalProperties: boolean; }; })[]; export declare class TaskAdapter { private readonly env; constructor(env?: NodeJS.ProcessEnv); private current; /** Non-reclaimable lock: crash uncertainty requires an operator, never automatic replay of a payment. */ private reserve; private mutationLease; private headers; private audit; call(name: string, args: unknown, signal?: AbortSignal, approve?: TaskApproval): Promise; private dispatch; private send; } //# sourceMappingURL=task-adapter.d.ts.map