import { type ListProps, type FormProps } from "antd"; import { type BaseRecord, type CrudFilters, type HttpError, type useTableProps as useTablePropsCore, type useTableReturnType } from "@refinedev/core"; export type useSimpleListProps = useTablePropsCore & { onSearch?: (data: TSearchVariables) => CrudFilters | Promise; }; export type useSimpleListReturnType = Omit, "tableQuery"> & { listProps: ListProps; query: useTableReturnType["tableQuery"]; searchFormProps: FormProps; }; /** * 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/api-reference/antd/hooks/list/useSimpleList} for more details. * * @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`} * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`} * @typeParam TSearchVariables - Antd form values * @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData` * */ export declare const useSimpleList: ({ resource, pagination: paginationFromProp, filters: filtersFromProp, sorters: sortersFromProp, onSearch, queryOptions, syncWithLocation, successNotification, errorNotification, liveMode: liveModeFromProp, onLiveEvent, liveParams, meta, dataProviderName, }?: useSimpleListProps) => useSimpleListReturnType; //# sourceMappingURL=useSimpleList.d.ts.map