import type { QueryObserverResult } from "@tanstack/react-query"; import type { Radio } from "antd"; import { type BaseKey, type BaseOption, type BaseRecord, type GetListResponse, type HttpError, type UseSelectProps } from "@refinedev/core"; export type UseRadioGroupReturnType = { radioGroupProps: Omit, "options"> & { options: TOption[]; }; query: QueryObserverResult, TError>; }; type UseRadioGroupProps = Omit, "defaultValue"> & { /** * Sets the default value */ defaultValue?: BaseKey; }; /** * `useRadioGroup` hook allows you to manage an Ant Design {@link https://ant.design/components/radio/#components-radio-demo-radiogroup-with-name Radio.Group} component when records in a resource needs to be used as radio options. * * @see {@link https://refine.dev/docs/api-reference/antd/hooks/field/useRadioGroup/} 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 useRadioGroup: ({ resource, sorters, filters, optionLabel, optionValue, queryOptions, pagination, liveMode, defaultValue, selectedOptionsOrder, onLiveEvent, liveParams, meta, dataProviderName, ...rest }: UseRadioGroupProps) => UseRadioGroupReturnType; export {}; //# sourceMappingURL=index.d.ts.map