UNPKG

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