import { FormProps, TableProps } from "antd"; import { QueryObserverResult } from "@tanstack/react-query"; import { BaseRecord, CrudFilters, CrudSorting, GetListResponse, SuccessErrorNotification, HttpError, LiveModeProps, useTableProps as useTablePropsCore, useTableReturnType as useTableCoreReturnType } from "@pankod/refine-core"; export declare type useTableProps = useTablePropsCore & SuccessErrorNotification & LiveModeProps & { onSearch?: (data: TSearchVariables) => CrudFilters | Promise; }; export declare type useTableReturnType = { searchFormProps: FormProps; tableProps: TableProps; tableQueryResult: QueryObserverResult, TError>; sorter?: CrudSorting; filters?: CrudFilters; current?: number; setCurrent: useTableCoreReturnType["setCurrent"]; pageSize: number; setPageSize: useTableCoreReturnType["setPageSize"]; pageCount: number; setFilters: useTableCoreReturnType["setFilters"]; setSorter: useTableCoreReturnType["setSorter"]; }; /** * By using useTable, you are able to get properties that are compatible with * Ant Design {@link https://ant.design/components/table/ ``} component. * All features such as sorting, filtering and pagination comes as out of box. * * @see {@link https://refine.dev/docs/api-references/hooks/table/useTable} for more details. */ export declare const useTable: ({ onSearch, initialCurrent, initialPageSize, hasPagination, initialSorter, permanentSorter, initialFilter, permanentFilter, defaultSetFilterBehavior, syncWithLocation: syncWithLocationProp, resource: resourceFromProp, successNotification, errorNotification, queryOptions, liveMode: liveModeFromProp, onLiveEvent, liveParams, metaData, dataProviderName, }?: useTableProps) => useTableReturnType; //# sourceMappingURL=useTable.d.ts.map