import { r as PageImage } from "./contract-hCcLRGkU.cjs"; import { CommandDefinition } from "@embedpdf/core"; //#region src/commands.d.ts /** What the snapshot's commands need from the browser. */ interface RenderCommandsPlatform { /** * Copy an image to the clipboard. Called in the press or key itself, before * the image is there: a browser may take the clipboard only then. */ copyImage(image: Promise): Promise; /** Give the user the bytes as a file download, of the given content type. */ saveFile(bytes: Uint8Array | Blob, fileName: string, contentType: string): void; } /** The snapshot's commands: `tool:snapshot` and `snapshot:*`, with the browser's part from `platform`. */ declare function createRenderCommands(platform: RenderCommandsPlatform): readonly CommandDefinition[]; //#endregion export { RenderCommandsPlatform, createRenderCommands }; //# sourceMappingURL=commands.d.cts.map