import { QueryObserverResult } from "@tanstack/react-query"; import { ListProps, FormProps } from "antd"; import { BaseRecord, CrudFilters, GetListResponse, SuccessErrorNotification, HttpError, LiveModeProps, useTableProps as useTablePropsCore, useTableReturnType } from "@pankod/refine-core"; export declare type useSimpleListProps = ListProps & useTablePropsCore & { onSearch?: (data: TSearchVariables) => CrudFilters | Promise; } & SuccessErrorNotification & LiveModeProps; export declare type useSimpleListReturnType = { listProps: ListProps; queryResult: QueryObserverResult>; searchFormProps: FormProps; filters: CrudFilters; setFilters: useTableReturnType["setFilters"]; }; /** * By using `useSimpleList` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/list/ ``} component. * All features such as pagination, sorting come out of the box. * * @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/list/useSimpleList} for more details. * * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-references/interfaceReferences#baserecord `BaseRecord`} * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-references/interfaceReferences#httperror `HttpError`} * @typeParam TSearchVariables - Antd form values * */ export declare const useSimpleList: ({ resource: resourceFromProp, initialCurrent, initialPageSize, hasPagination, initialSorter, permanentSorter, initialFilter, permanentFilter, defaultSetFilterBehavior, onSearch, queryOptions, syncWithLocation: syncWithLocationProp, successNotification, errorNotification, liveMode: liveModeFromProp, onLiveEvent, liveParams, metaData, dataProviderName, ...listProps }?: useSimpleListProps) => useSimpleListReturnType; //# sourceMappingURL=useSimpleList.d.ts.map