import type { ResourcePointer } from "../orchestration/contracts.ts"; export declare const DEFAULT_WORKER_RESOURCE_MAX_BYTES: number; export declare const DEFAULT_WORKER_RESOURCE_TOTAL_MAX_BYTES: number; export type WorkerResourceMaterializationFailureCode = "unknown_pointer" | "invalid_pointer" | "unsupported_pointer" | "missing_pointer" | "not_regular_file" | "resource_oversize" | "aggregate_oversize" | "pointer_changed" | "digest_mismatch" | "read_failed"; export type WorkerResourceMaterialization = { ok: true; pointer: ResourcePointer; content: string; digest: string; } | { ok: false; code: WorkerResourceMaterializationFailureCode; pointerId: string; }; export type WorkerResourceBundleMaterialization = { ok: true; pointers: readonly ResourcePointer[]; systemPrompt: string; } | { ok: false; code: WorkerResourceMaterializationFailureCode; pointerId: string; }; export interface WorkerResourceMaterializerOptions { /** Exact pointers from an immutable execution contract or execution grant. */ resources: readonly ResourcePointer[]; maxResourceBytes?: number; maxTotalBytes?: number; } /** * On-demand reader for a pre-admitted pointer set. It has no URI input surface: a model can name * an id only, and the id must already be present in the execution contract or grant. */ export declare class WorkerResourceMaterializer { private readonly pointersById; private readonly maxResourceBytes; private readonly maxTotalBytes; private totalBytes; constructor(options: WorkerResourceMaterializerOptions); materialize(pointerId: string): WorkerResourceMaterialization; } /** * Materialize exactly one selected grant and render it as bounded, source-labelled context. * Resource text may guide the task but never expands the execution grant or tool authority. */ export declare function materializeWorkerResourceBundle(resources: readonly ResourcePointer[]): WorkerResourceBundleMaterialization; //# sourceMappingURL=worker-resource-materializer.d.ts.map