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