import type { SelectProps } from "antd/lib/select"; import type { QueryObserverResult } from "@tanstack/react-query"; import { type BaseRecord, type GetManyResponse, type GetListResponse, type HttpError, type UseSelectProps, type BaseOption } from "@refinedev/core"; export type UseSelectReturnType = { selectProps: SelectProps; query: QueryObserverResult, TError>; defaultValueQuery: QueryObserverResult, TError>; }; /** * `useSelect` hook allows you to manage an Ant Design {@link https://ant.design/components/select/ Select} component when records in a resource needs to be used as select options. * * @see {@link https://refine.dev/docs/api-reference/antd/hooks/field/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