import type { SpinProps, PaginationProps } from 'ant-design-vue'; import type { FetchData } from '../typings'; export declare type FetchDataProps = Readonly & { params: Record; pagination: boolean | PaginationProps; }>>; export declare type Context = { loading: boolean | SpinProps; dataSource: RecordType[]; pagination: PaginationProps; }; export declare type FetchOptions = Partial<{ onLoad: (dataSource: RecordType[]) => void; onRequestError: (e: Error) => void; }>; export declare const useFetchData: (getData: FetchData | undefined, props?: Readonly & { params: Record; pagination: boolean | PaginationProps; }>>, options?: Partial<{ onLoad: (dataSource: T[]) => void; onRequestError: (e: Error) => void; }> | undefined) => { context: import("vue").ShallowReactive>; reload: (resetPageIndex?: boolean) => Promise; setPageInfo: (pageInfo: PaginationProps) => void; setQueryFilter: (params: Record) => void; };