import type { MaterializedInputAttachment, RunInputAttachment } from "./types.js"; export type InputAttachmentErrorCode = "attachment_download_failed" | "attachment_download_timeout" | "attachment_read_failed" | "attachment_verification_failed"; export declare class InputAttachmentMaterializationError extends Error { readonly code: InputAttachmentErrorCode; constructor(message: string, code: InputAttachmentErrorCode, options?: ErrorOptions); } export interface InputAttachmentGrant { downloads: Array<{ attachmentId: string; downloadUrl: string; }>; } export declare function materializeInputAttachments(workspaceDir: string, attachments: RunInputAttachment[], grant: InputAttachmentGrant, signal: AbortSignal): Promise;