import type { Attachment, ContentPart } from './types.js'; export declare class DocumentAttachment { private readonly _data; private readonly _mimeType; private readonly _name?; private constructor(); /** Create from raw string content */ static fromString(content: string, name?: string): DocumentAttachment; /** Create from a base64 string */ static fromBase64(base64: string, mimeType: string, name?: string): DocumentAttachment; /** Create from a URL (fetches the content) */ static fromUrl(url: string): Promise; toAttachment(): Attachment; toContentPart(): ContentPart; } export declare class ImageAttachment { private readonly _data; private readonly _mimeType; private constructor(); /** Create from a base64 string */ static fromBase64(base64: string, mimeType: string): ImageAttachment; /** Create from a URL (fetches the image) */ static fromUrl(url: string): Promise; toAttachment(): Attachment; toContentPart(): ContentPart; } /** Convert attachments to ContentPart[] for building a user message */ export declare function attachmentsToContentParts(attachments: Attachment[]): ContentPart[]; /** Get text content from a message (handles both string and ContentPart[] content) */ export declare function getMessageText(content: string | ContentPart[]): string; //# sourceMappingURL=attachment.d.ts.map