import type { SelectProps } from "@mantine/core"; import type { QueryObserverResult } from "@tanstack/react-query"; import { type BaseRecord, type GetManyResponse, type GetListResponse, type HttpError, type UseSelectProps, type BaseOption, type Prettify } from "@refinedev/core"; export type UseSelectReturnType = { selectProps: Prettify & { data: TOption[]; }>; query: QueryObserverResult, TError>; defaultValueQuery: QueryObserverResult, TError>; }; /** * `useSelect` hook is used to fetch data from the dataProvider and return the options for the select box. * * It uses `getList` method as query function from the dataProvider that is * passed to {@link https://refine.dev/docs/api-reference/core/components/refine-config ``}. * * @see {@link https://refine.dev/docs/api-reference/mantine/hooks/useSelect} 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 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 useSelect: (props: UseSelectProps) => UseSelectReturnType; //# sourceMappingURL=index.d.ts.map