import { Fn } from '@maxax/types';
import { BasicColumn, BasicTableProps } from '../basic-table';
export interface BasicButtonImportPreviewContext {
    name: string;
}
export interface BasicButtonImportPreviewProps {
    showTplButton?: boolean;
    showCoverSwitch?: boolean;
    width?: string;
    previewWidth?: string;
    href?: string | (() => string);
    importApi?: (..._arg: any) => Promise<any>;
    templateApi?: (..._arg: any) => Promise<any>;
    beforeFetchImport?: Fn;
    afterFetchImport?: Fn;
    listField?: string;
    previewColumns?: BasicColumn[];
    previewTableProps?: Partial<BasicTableProps>;
    previewTitle?: string;
    saveApi?: (..._arg: any) => Promise<any>;
    beforeFetchSave?: Fn;
    afterFetchSave?: Fn;
}
export interface BasicButtonImportPreviewEmits {
    (_event: 'import', _data: {
        data: any;
        checked: boolean;
        file: Blob;
    }): void;
    (_event: 'preview', _data: {
        data: any;
        checked: boolean;
        file: Blob | null;
        records: any[];
    }): void;
    (_event: 'save', _data: {
        data: any;
        checked: boolean;
        file: Blob | null;
        records: any[];
    }): void;
}
export interface BasicButtonImportPreviewModalProps {
    previewWidth?: string;
    previewColumns?: BasicColumn[];
    previewTableProps?: Partial<BasicTableProps>;
    previewTitle?: string;
}
export interface BasicButtonImportPreviewModalEmits {
    (_event: 'confirm', _data: {
        data: any[];
        records: any[];
    }): void;
    (_event: 'cancel'): void;
}
export interface BasicButtonImportUploadModalProps {
    width?: string;
    showTplButton?: boolean;
    showCoverSwitch?: boolean;
}
export interface BasicButtonImportUploadModalEmits {
    (_event: 'confirm', _data: {
        file: Blob;
        checked: boolean;
    }): void;
    (_event: 'downloadTemplate'): void;
}
//# sourceMappingURL=interface.d.ts.map