import type { ProTableEmits, ProTableProps } from './pro-table'; interface Options { props: ProTableProps; emit: ProTableEmits; canAutoQuery: { value: boolean; }; } export declare function useApi(options: Options): { fetchData: (resetPage?: boolean) => Promise; getParams: () => { api: any; query: any; extra: ExtractPropTypes<{ pageSize: { type: NumberConstructor; }; pageSizeOptions: { type: PropType; }; api: { type: StringConstructor; }; total: { type: NumberConstructor; }; cacheParams: { type: BooleanConstructor; }; tree: { /** 缓存query */ type: (StringConstructor | BooleanConstructor)[]; default: boolean; }; data: { type: PropType; }; requestExtra: { type: PropType>; }; columns: { type: PropType; required: boolean; }; columnsConfigurable: { type: PropType; default: boolean; }; showIndex: { type: BooleanConstructor; }; checkable: { type: PropType boolean)>; }; checked: { type: PropType; }; selected: { type: ObjectConstructor; }; showSearchButton: { type: BooleanConstructor; default: undefined; }; selectable: { type: PropType boolean)>; }; /** 获取查询参数 */ pagination: BooleanConstructor; query: { type: PropType>; }; fetch: { type: PropType<(ctx: { api?: string | undefined; query: Record; }) => Promise>; }; height: { type: StringConstructor; }; summaryMethod: { type: PropType<(data: { columns: import("./pro-table").ProTableColumn[]; data: any[]; checked: Set; }) => string[]>; }; showTools: { type: BooleanConstructor; default: boolean; }; defaultExpandAll: { type: BooleanConstructor; default: boolean; }; cellMinWidth: { type: NumberConstructor; default: number; }; /** 选中的数据 */ searcherLimit: { type: NumberConstructor; /** 表格的字段的统计 */ default: number; }; lazyLoad: { type: PropType<(row: Record) => any[] | Promise>; }; showSummary: BooleanConstructor; itemReactive: BooleanConstructor; mergeCell: { type: PropType<(row: import("../..").DataTableRow, column: import("../..").DataTableColumn, columnIndex: number) => { rowspan: number; colspan: number; } | undefined>; }; cellClass: { type: PropType<(row: import("../..").DataTableRow, column: import("../..").DataTableColumn, columnIndex: number) => string[]>; }; }>; sortKeys: Record | undefined; }; handleSort: (_sortKeys: Record) => void; handleCheck: (checked: any[]) => void; state: any; pageQuery: any; loading: any; currentQueryStr: { value: string; }; defaultQuery: { value: {}; }; }; export {};