import { type AttachFileRequest, type AttachFileResponse } from "../shared/types.js"; export declare class AttachmentError extends Error { readonly status: number; constructor(status: number, message: string); } /** Validate size before allocating decoded bytes or creating any files. */ export declare function validateAttachment(request: AttachFileRequest): { mediaType: string; encoded: string; bytes: number; }; /** Both first-turn and later uploads use the same containment/filename rules. */ export declare function writeAttachment(cwd: string, request: AttachFileRequest): Promise; //# sourceMappingURL=attachments.d.ts.map