/** The clipboard flavors we care about for a paste. */ export interface ClipboardPaste { /** `text/plain` flavor — used for size heuristics and as the default body. */ text: string; /** `text/html` flavor when the source provided one. */ html?: string; } /** Read the relevant clipboard flavors from a paste/drop DataTransfer. */ export declare function readClipboardPaste(data: { getData(type: string): string; } | null | undefined): ClipboardPaste; export declare function shouldConvertPasteToAttachment(text: string): boolean; /** * Whether a clipboard paste is large enough to become a `Pasted text` * attachment chip. Mirrors `shouldConvertPasteToAttachment` but evaluates the * representation we'd actually store, so an HTML-only paste (empty text/plain) * still converts on the strength of its markup. */ export declare function shouldConvertClipboardToAttachment(paste: ClipboardPaste): boolean; /** * Build the attachment File for a page-sized paste, preserving HTML markup when * the pasted content is an HTML document so it travels the same rail as an * uploaded .html file. */ export declare function createPastedAttachmentFile(paste: ClipboardPaste): File; /** Back-compat helper for callers that only have plain text. */ export declare function createPastedTextFile(text: string): File; export declare function isPastedTextAttachmentName(name: string | undefined): boolean; export declare function unwrapAttachmentEnvelope(text: string): string; export declare function countLines(text: string): number; //# sourceMappingURL=pasted-text.d.ts.map