import { type ImageEditorSnapshot } from '@uppy/components'; import type { UppyFile } from '@uppy/core'; type ImageEditorProps = { file: UppyFile; }; type ButtonProps = { type: 'button'; onclick: () => void; disabled: boolean; 'aria-label': string; }; type ButtonClickOptions = { onClick?: () => void; }; type ImageProps = ReturnType; type SvelteImageProps = Omit & { onload: ImageProps['onLoad']; }; type SliderProps = { type: 'range'; min: number; max: number; value: number; onchange: (e: Event) => void; 'aria-label': string; }; type SvelteImageEditorSnapshot = { state: ImageEditorSnapshot['state']; getImageProps: () => SvelteImageProps; getSaveButtonProps: (options?: ButtonClickOptions) => ButtonProps; getCancelButtonProps: (options?: ButtonClickOptions) => ButtonProps; getRotateButtonProps: (degrees: number) => ButtonProps; getFlipHorizontalButtonProps: () => ButtonProps; getZoomButtonProps: (ratio: number) => ButtonProps; getCropSquareButtonProps: () => ButtonProps; getCropLandscapeButtonProps: () => ButtonProps; getCropPortraitButtonProps: () => ButtonProps; getResetButtonProps: () => ButtonProps; getRotationSliderProps: () => SliderProps; }; export declare function useImageEditor(props: ImageEditorProps): SvelteImageEditorSnapshot; export {};