import { type Component } from 'vue'; interface RequestOptions { /** 请求接口 */ api: string; /** 请求查询参数 */ query: Record; /** 请求额外信息, 在pro-table中传入 */ extra?: Record; /** 排序字段信息 */ sortKeys?: Record; } export type RequestResponse = { data: any[]; total?: number; raw?: any; statistics?: Record; }; export type ProTableRequestMethod = (option: RequestOptions) => Promise; export type TableSelectRequestMethod = (option: RequestOptions) => Promise; export interface ConfigStore { /** 全局组件尺寸 */ size?: 'large' | 'default' | 'small'; /** 集成表格的api使用的请求方法 */ proTableRequestMethod?: ProTableRequestMethod; /** 集成表格分页默认大小 */ proTableDefaultSize?: number; /** 集成表格分页可选大小 */ proTableDefaultSizeOptions?: number[]; /** 集成表格是否开启斑马线 */ proTableStripe?: boolean; /** 断点 */ breakpoint: { xs: number; s: number; m: number; l: number; xl: number; }; /** 表格选择器 */ tableSelectRequestMethod?: TableSelectRequestMethod; /** 消息弹框 */ message?: { max: number; }; /** zIndex */ zIndex: number; /** 命名空间 */ namespace: string; /** table工具栏额外工具 */ proTableExtraTools?: Component[]; } export declare const useConfig: () => readonly [any, (config: Partial) => void]; export {};