import type { ChatOptions } from '../core/agent/moss-agent-types.js'; export type PromptAttachmentBlock = NonNullable[number]; export interface PreparedPromptAttachment { index: number; kind: 'image' | 'file'; path: string; label: string; filename: string; mimeType: string; bytes: number; } export interface PreparePromptAttachmentsOptions { cwd?: string; startIndex?: number; } export interface PreparePromptAttachmentsResult { attachments: PreparedPromptAttachment[]; blocks: PromptAttachmentBlock[]; warnings: string[]; } /** * Detect the actual image type from file magic bytes. Returns the real MIME * (which wins over the extension-implied one) or null when the bytes are not * a supported image. @internal exported for tests. */ export declare function detectImageMime(buffer: Buffer): string | null; export declare function parseAttachArgs(input: string): string[]; export declare function preparePromptAttachments(values: string[], options?: PreparePromptAttachmentsOptions): PreparePromptAttachmentsResult; export declare function renderPendingAttachmentSummary(attachments: PreparedPromptAttachment[]): string; //# sourceMappingURL=attachments.d.ts.map