import React from 'react'; import type { PressableProps, View, ViewProps } from 'react-native'; export type CheckedState = boolean | 'indeterminate'; type CheckboxBaseProps = Omit & Pick; export type CheckboxExtraProps = { children?: React.ReactNode; id?: string; disabled?: boolean; checked?: CheckedState; defaultChecked?: CheckedState; required?: boolean; /** * * @param checked Either boolean or "indeterminate" which is meant to allow for a third state that means "neither", usually indicated by a minus sign. */ onCheckedChange?(checked: CheckedState): void; labelledBy?: string; name?: string; value?: string; }; export type CheckboxProps = CheckboxBaseProps & CheckboxExtraProps; export declare function useCheckbox(props: P, [checked, setChecked]: [ CheckedState, React.Dispatch> ], ref: React.Ref): { bubbleInput: import("react/jsx-runtime").JSX.Element | null; checkboxRef: (node: R | null) => void; checkboxProps: { role: string; 'aria-labelledby': string | undefined; 'aria-checked': string | boolean; } & Omit & { onPress: import("@tamagui/web").EventHandler | undefined; type?: string | undefined; value?: string | undefined; 'data-state'?: string | undefined; 'data-disabled'?: string | undefined; disabled?: boolean | undefined; onKeyDown?: import("@tamagui/web").EventHandler> | undefined; }; }; export {}; //# sourceMappingURL=useCheckbox.d.ts.map