import { type DialogResult } from '../../dialog'; import type { ImageEditorDialogOptions, ImageEditorDialogResult } from './types'; /** * Opens a full-screen image editor dialog with crop, rotate, zoom, and reset controls. * * ### Modes * - **`cover`** (default) — image fills the canvas; crop selects a visible region. * - **`contain`** — image is fitted inside the canvas with optional fill color. * * ### Aspect ratio * - `number` — fixed ratio, no popover. * - `ImageEditorDynamicAspectRatio` — popover with supported ratios. `allowFreeCrop: true` * adds a free-ratio option; `initial` is optional when free crop is enabled. * - Omitted — free crop (no ratio constraint on the selection). * * ### Result * - `croppedFile` — `FileWithBlobUrl` with `width`/`height` at natural resolution. * - `selectedRatio` — active aspect ratio at save time (`null` for free crop). */ export declare const openImageEditorDialog: (options: ImageEditorDialogOptions) => Promise>; export type { CroppedFile, ImageEditorDialogOptions, ImageEditorDialogResult, ImageEditorDynamicAspectRatio } from './types'; export { cropAndResizeImage } from './crop-and-resize'; export type { CropAndResizeOptions } from './crop-and-resize';