import { ID } from "../../types/index.mjs"; import { AtomExpose, AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { Ref } from "vue"; //#region src/components/Toggle/ToggleRoot.vue.d.ts interface ToggleRootContext { /** Whether this toggle is currently pressed */ isPressed: Readonly>; /** Whether this toggle is disabled */ isDisabled: Readonly>; /** Toggle the pressed state */ toggle: () => void; } interface ToggleRootProps extends AtomProps { /** Unique identifier (auto-generated if not provided) */ id?: ID; /** Selection key when inside a Toggle.Group */ value?: V; /** Disables this toggle */ disabled?: boolean; /** Namespace for context provision to children (Indicator) */ namespace?: string; /** Namespace for connecting to parent Toggle.Group */ groupNamespace?: string; } interface ToggleRootSlotProps { /** Whether this toggle is currently pressed */ isPressed: boolean; /** Whether this toggle is disabled */ isDisabled: boolean; /** Toggle the pressed state */ toggle: () => void; /** Attributes to bind to the toggle element */ attrs: { 'type': 'button' | undefined; 'role': 'button' | undefined; 'aria-pressed': boolean; 'aria-disabled': boolean | undefined; 'disabled': boolean | undefined; 'tabindex': 0 | -1; 'data-state': 'on' | 'off'; 'data-disabled': true | undefined; 'onClick': () => void; 'onKeydown': ((e: KeyboardEvent) => void) | undefined; }; } declare const useToggleRoot: (key: string, defaultValue?: ToggleRootContext | undefined) => ToggleRootContext, provideToggleRoot: (key: string, context: ToggleRootContext, app?: import("vue").App) => ToggleRootContext; declare const _default: typeof __VLS_export; declare const __VLS_export: (__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: import("vue").PublicProps & __VLS_PrettifyLocal<(ToggleRootProps & { modelValue?: boolean; }) & { "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined; "onUpdate:model-value"?: ((value: boolean) => any) | undefined; }> & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: import("vue").ShallowUnwrapRef) => void; attrs: any; slots: { default: (props: ToggleRootSlotProps) => any; }; emit: ((evt: "update:model-value", value: boolean) => void) & ((event: "update:modelValue", value: boolean | undefined) => void); }>) => import("vue").VNode & { __ctx?: NonNullable>; }; type __VLS_PrettifyLocal = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {}; //#endregion export { ToggleRootContext, ToggleRootProps, ToggleRootSlotProps, _default as default, provideToggleRoot, useToggleRoot };