import type { Ref } from 'vue';
import type { PageButtonArgsFunctionType, ExposeWithPageButtons, PageButtonPayload, RecordString,  LayoutConfig,  PageButton } from '../../../edit-page-layout';
export default function useExcelImport(pageData: Ref<RecordString>, layoutConfig: Ref<LayoutConfig>, defaultValues: Ref<RecordString>): {
    importVisible: Ref<boolean>;
    importProps: Ref<{
        button: {
            title: string;
            i18nKey?: string | undefined;
            key: string | symbol;
            args: PageButtonArgsFunctionType | {
                [x: string]: unknown;
                url: string;
            };
            authorityCode?: string | undefined;
            attrs?: RecordString | undefined;
            icon?: {
                type: string;
                size: number;
                color?: string | undefined;
            } | undefined;
            emit?: boolean | undefined;
            emitKey?: string | undefined;
            showMessage?: boolean | undefined;
            checkBefore?: boolean | undefined;
            confirm?: {
                title: string;
                content: string;
            } | undefined;
            dropdown?: boolean | undefined;
            isExistFrozenSource?: boolean | undefined;
            isExistFrozenSourceUrl?: string | undefined;
            isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
            disabled?: ((pageData: RecordString) => boolean) | undefined;
            handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
            handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
            callback?: ((payload: PageButtonPayload) => void) | undefined;
        };
        isEditPage: boolean;
        token: string;
    }>;
    handleOpenImportModal: (btn: PageButton) => void;
};
