import * as React from 'react'; import type { GestureResponderEvent, PressableProps, View, ViewProps } from 'react-native'; type SwitchBaseProps = ViewProps & Pick; export type SwitchExtraProps = { labeledBy?: string; disabled?: boolean; name?: string; value?: string; checked?: boolean; defaultChecked?: boolean; required?: boolean; onCheckedChange?(checked: boolean): void; }; export type SwitchProps = SwitchBaseProps & SwitchExtraProps; export type SwitchState = boolean; export declare function useSwitch(props: P, [checked, setChecked]: [SwitchState, React.Dispatch>], ref: React.Ref): { switchProps: { onPress(): void; }; switchRef: React.Ref; bubbleInput: null; } | { switchProps: { 'aria-labelledby': string | undefined; onPress: import("@tamagui/helpers").EventHandler | undefined; tabIndex?: 0 | undefined; 'data-state'?: string | undefined; 'data-disabled'?: string | undefined; disabled?: boolean | undefined; role: "switch"; 'aria-checked': boolean; }; switchRef: (node: View) => void; /** * insert as a sibling of your switch (should not be inside the switch) */ bubbleInput: import("react/jsx-runtime").JSX.Element | null; }; export {}; //# sourceMappingURL=useSwitch.d.ts.map