import { Atom } from '@cn-ui/use';
import CropperJS from 'cropperjs';
import 'cropperjs/dist/cropper.min.css';
import { JSX, JSXElement } from 'solid-js';
export interface CropperProps extends JSX.HTMLAttributes<HTMLImageElement> {
    src: string;
    options?: CropperJS.Options;
    /** 用于暴露切割好的数据 */
    previewDataURL?: Atom<string>;
    loading?: JSXElement;
    /** TODO 未完成错误态 */
    error?: JSXElement;
}
export declare const Cropper: import("solid-js").Component<Omit<CropperProps, "style" | "class"> & {
    ref?: HTMLElement | ((el: HTMLElement) => void);
    style?: string | JSX.CSSProperties;
    className?: string | string[] | typeof import("@cn-ui/use").classNames;
    class?: string | string[] | typeof import("@cn-ui/use").classNames;
    classList?: typeof import("@cn-ui/use").classNames | {
        [k: string]: boolean;
    };
}>;
