UNPKG

566 BTypeScriptView Raw
1import type { PartialKeys } from '../types';
2import type { ToggleRefinementProps as ToggleRefinementUiComponentProps } from '../ui/ToggleRefinement';
3import type { UseToggleRefinementProps } from 'react-instantsearch-core';
4type UiProps = Pick<ToggleRefinementUiComponentProps, 'onChange' | 'checked'>;
5export type ToggleRefinementProps = PartialKeys<Omit<ToggleRefinementUiComponentProps, keyof UiProps>, 'label'> & UseToggleRefinementProps;
6export declare function ToggleRefinement({ attribute, on, off, ...props }: ToggleRefinementProps): JSX.Element;
7export {};