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