import { AtomExpose, AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { SingleContext } from "../../composables/createSingle/index.mjs"; import { Ref } from "vue"; //#region src/components/Button/ButtonRoot.vue.d.ts interface ButtonRootContext { /** The button's value (for group registration / form submission) */ value: unknown; /** Form field name */ name?: string; /** Form association ID */ form?: string; /** Whether the button is in the loading state (after grace period) */ isLoading: Readonly>; /** Whether the button is disabled */ isDisabled: Readonly>; /** Whether the button is readonly */ isReadonly: Readonly>; /** Whether the button is passive */ isPassive: Readonly>; /** Whether the button is selected (in group mode) */ isSelected: Readonly>; /** Whether the button is an icon-only button */ isSolo: Ref; /** Internal single selection for Loading/Content visibility */ single: SingleContext; } interface ButtonRootProps extends AtomProps { /** Disables the button — fully non-interactive, removed from tab order */ disabled?: boolean; /** Non-clickable but looks normal, remains focusable/hoverable */ readonly?: boolean; /** Non-clickable, looks disabled via [data-passive], remains focusable/hoverable */ passive?: boolean; /** Triggers loading state with grace period before visual indicator */ loading?: boolean; /** Duration in ms before loading UI appears (0 to show immediately) */ grace?: number; /** Value for use inside Button.Group */ value?: V; /** Namespace for context provision to children */ namespace?: string; /** Namespace for connecting to parent Button.Group */ groupNamespace?: string; /** Form field name — auto-renders HiddenInput when set */ name?: string; /** Associate with form by ID */ form?: string; /** Accessible label for the button */ ariaLabel?: string; } interface ButtonRootSlotProps { /** Whether the button is in the loading state (after grace period) */ isLoading: boolean; /** Whether the button is disabled */ isDisabled: boolean; /** Whether the button is readonly */ isReadonly: boolean; /** Whether the button is passive */ isPassive: boolean; /** Whether the button is selected (in group mode) */ isSelected: boolean; /** Attributes to bind to the button element */ attrs: { 'type': 'button' | undefined; 'role': 'button'; 'disabled': true | undefined; 'aria-disabled': boolean; 'aria-busy': true | undefined; 'aria-pressed': boolean | undefined; 'aria-label': string | undefined; 'tabindex': 0 | -1 | undefined; 'data-loading': true | undefined; 'data-passive': true | undefined; 'data-readonly': true | undefined; 'data-disabled': true | undefined; 'data-selected': true | undefined; 'data-solo': true | undefined; 'onClick': (() => void) | undefined; 'onKeydown': ((e: KeyboardEvent) => void) | undefined; }; } declare const useButtonRoot: (key: string, defaultValue?: ButtonRootContext | undefined) => ButtonRootContext, provideButtonRoot: (key: string, context: ButtonRootContext, app?: import("vue").App) => ButtonRootContext; 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> & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: import("vue").ShallowUnwrapRef) => void; attrs: any; slots: { default: (props: ButtonRootSlotProps) => any; }; emit: {}; }>) => 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 { ButtonRootContext, ButtonRootProps, ButtonRootSlotProps, _default as default, provideButtonRoot, useButtonRoot };