/** @jsxImportSource nativewind */ /** * Source code copied and adapted from: * https://github.com/roninoss/rn-primitives * License: MIT (c) 2024 RoninOSS */ import * as React from "react"; import { View } from "react-native"; import type { ItemProps, RootProps } from "./types"; declare const Root: React.ForwardRefExoticComponent>; declare function useRootContext(): RootProps; declare const Item: React.ForwardRefExoticComponent, "ref"> & { asChild?: boolean; } & { onKeyDown?: (ev: React.KeyboardEvent) => void; onKeyUp?: (ev: React.KeyboardEvent) => void; } & { value: string; } & React.RefAttributes>; declare function useItemContext(): ItemProps; declare const utils: { getIsSelected(value: string | string[] | undefined, itemValue: string): boolean; getNewSingleValue(originalValue: string | string[] | undefined, itemValue: string): string | undefined; getNewMultipleValue(originalValue: string | string[] | undefined, itemValue: string): string[]; }; export { Item, Root, useItemContext, useRootContext, utils }; //# sourceMappingURL=toggle-group.d.ts.map