import { CSSProperties, ExtractPropTypes, ImgHTMLAttributes, PropType, VNode } from 'vue';
import { ProgressProps } from 'naive-ui';
import { UploadProgressEvent } from '../basic-upload-core';
import { RcFile as OriRcFile, UploadRequestOption as RcCustomRequestOptions } from '../basic-upload-core/interface';
export declare const basicUploadProps: {
    capture: PropType<boolean | "user" | "environment">;
    type: {
        type: PropType<UploadType>;
        default: string;
    };
    name: StringConstructor;
    defaultFileList: PropType<UploadFile<any>[]>;
    fileList: PropType<UploadFile<any>[]>;
    action: {
        type: PropType<string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>)>;
        default: string;
    };
    directory: BooleanConstructor;
    data: {
        type: PropType<Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>)>;
        default: () => {};
    };
    method: {
        type: PropType<"POST" | "post" | "PUT" | "PATCH" | "put" | "patch">;
        default: string;
    };
    headers: PropType<HttpRequestHeader>;
    showUploadList: {
        type: PropType<boolean | ShowUploadListInterface>;
        default: boolean;
    };
    multiple: {
        type: BooleanConstructor;
        default: boolean;
    };
    accept: {
        type: PropType<string | string[]>;
        default: string;
    };
    beforeUpload: PropType<(file: FileType, FileList: FileType[]) => BeforeUploadValueType | Promise<BeforeUploadValueType>>;
    onChange: PropType<(info: UploadChangeParam<UploadFile<any>>) => void>;
    'onUpdate:fileList': PropType<(fileList: UploadChangeParam<UploadFile<any>>['fileList']) => void>;
    onDrop: PropType<(event: DragEvent) => void>;
    listType: {
        type: PropType<UploadListType>;
        default: string;
    };
    onPreview: PropType<(file: UploadFile<any>) => void>;
    onDownload: PropType<(file: UploadFile<any>) => void>;
    onReject: PropType<(fileList: FileType[]) => void>;
    onRemove: PropType<(file: UploadFile<any>) => unknown | boolean | Promise<unknown | boolean>>;
    remove: PropType<(file: UploadFile<any>) => unknown | boolean | Promise<unknown | boolean>>;
    supportServerRender: {
        type: BooleanConstructor;
        default: boolean;
    };
    disabled: BooleanConstructor;
    prefixCls: StringConstructor;
    customRequest: PropType<(options: RcCustomRequestOptions) => void>;
    withCredentials: BooleanConstructor;
    openFileDialogOnClick: {
        type: BooleanConstructor;
        default: boolean;
    };
    id: StringConstructor;
    previewFile: PropType<PreviewFileHandler>;
    transformFile: PropType<TransformFileHandler>;
    iconRender: PropType<(opt: {
        file: UploadFile<any>;
        listType?: UploadListType;
    }) => VueNode>;
    isImageUrl: PropType<(file: UploadFile) => boolean>;
    progress: PropType<UploadListProgressProps>;
    itemRender: PropType<ItemRender<any>>;
    maxCount: NumberConstructor;
    height: (NumberConstructor | StringConstructor)[];
    removeIcon: PropType<(opt: {
        file: UploadFile;
    }) => VueNode>;
    downloadIcon: PropType<(opt: {
        file: UploadFile;
    }) => VueNode>;
    previewIcon: PropType<(opt: {
        file: UploadFile;
    }) => VueNode>;
};
export type BasicUploadProps = ExtractPropTypes<typeof basicUploadProps>;
export interface BasicUploadContext {
    name: string;
}
type VNodeChildAtom = VNode | string | number | boolean | null | undefined;
export type VueNode = VNodeChildAtom | VNodeChildAtom[] | VNode;
export interface FileType extends OriRcFile {
    readonly lastModifiedDate?: Date;
}
export type UploadFileStatus = 'error' | 'success' | 'done' | 'uploading' | 'removed';
export interface HttpRequestHeader {
    [key: string]: string;
}
export interface UploadFile<T = any> {
    uid: string;
    size?: number;
    name: string;
    fileName?: string;
    lastModified?: number;
    lastModifiedDate?: Date;
    url?: string;
    status?: UploadFileStatus;
    percent?: number;
    thumbUrl?: string;
    crossOrigin?: ImgHTMLAttributes['crossorigin'];
    originFileObj?: FileType;
    response?: T;
    error?: any;
    linkProps?: any;
    type?: string;
    xhr?: T;
    preview?: string;
}
export interface InternalUploadFile<T = any> extends UploadFile<T> {
    originFileObj: FileType;
}
export interface ShowUploadListInterface {
    showRemoveIcon?: boolean;
    showPreviewIcon?: boolean;
    showDownloadIcon?: boolean;
}
export interface UploadChangeParam<T = UploadFile> {
    file: T;
    fileList: T[];
    event?: UploadProgressEvent;
}
export type UploadType = 'drag' | 'select';
export type UploadListType = 'text' | 'picture' | 'picture-card';
export type UploadListProgressProps = Omit<ProgressProps, 'percentage' | 'type'> & {
    class?: string;
    style?: CSSProperties;
};
export type ItemRender<T = any> = (opt: {
    originNode: VueNode;
    file: UploadFile;
    fileList: Array<UploadFile<T>>;
    actions: {
        download: () => void;
        preview: () => void;
        remove: () => void;
    };
}) => VueNode;
export type PreviewFileHandler = (file: FileType | Blob) => PromiseLike<string>;
export type TransformFileHandler = (file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>;
export type BeforeUploadValueType = boolean | string | Blob | FileType;
export interface UploadState<T = any> {
    fileList: Array<UploadFile<T>>;
    dragState: string;
}
export {};
//# sourceMappingURL=interface.d.ts.map