import { Extension } from '@tiptap/core'; /** As much of a `DataTransfer` as the paste reads. */ export interface ClipboardSource { files?: ArrayLike | null; getData(format: string): string; } /** `'Screenshot 2026-09-07 14-32-05.png'`: sortable, and readable on a file card. */ export declare function pastedImageName(contentType: string, at?: Date, index?: number): string; /** * The pictures on the clipboard, named — `[]` when there is nothing to attach. * * **Text wins.** A copy from a spreadsheet or a document puts a rendered * picture of the selection beside the text; attaching the picture instead of * pasting the text is wrong every time. So a clipboard holding text is left to * the editor, and a screenshot, which holds none, lands here. Pictures only: * any other file comes through the app's own file picker. */ export declare function pastedImages(source: ClipboardSource | null | undefined, at?: Date): File[]; export interface PastedImagesOptions { /** * The pictures a paste carried, named. Return `true` when the app took them * (an upload started), `false` to let the editor paste as it would have — * for a box that cannot upload right now. */ onImages: (files: File[]) => boolean; } /** * Pasting a picture attaches it: a screenshot pasted into the editor reaches * the app as named files, the way the app's own file picker would hand them. * Text on the clipboard wins (see {@link pastedImages}). */ export declare const PastedImages: Extension; //# sourceMappingURL=PastedImages.d.ts.map