import type { Size } from '../image-tools/types.js'; import type { CropSession } from '../image-tools/sessions.js'; interface CropModeHost { readonly id: string; readonly src: string; readonly filled: { readonly src?: string; }; readonly store: { readonly activeTool: { name: string; elementId: string; cancel(): void; run(): Promise; } | null; setTool(name: 'crop', options: { elementId: string; }): CropSession; canUseTool(name: 'crop', elementId: string): boolean; } | null; } export declare const cropMode: (self: CropModeHost) => { views: { readonly _cropModeEnabled: boolean; readonly _cropEnabled: boolean; readonly _sourceSize: Size | null; }; actions: { _setSourceSize(size: Size, src: string): void; toggleCropMode(flag?: boolean): void; cancelCropMode(): void; }; }; export type CropModeActions = ReturnType['actions']; export {};