/** * Blora Design 2.0 - Button helpers * * Spec §17.1: CSS does not depend on this helper. * The helper is optional convenience for loading state management * and Lucide icon hydration on native `.blora-button[data-icon]`. */ export interface ButtonLoadingOptions { /** Accessible label during loading (e.g. "保存中"). */ label?: string; /** Whether to also set `disabled` during loading. Default: true. */ disable?: boolean; } /** * Toggle a button's loading state. * * - Sets `aria-busy` and `data-loading` on the button. * - When `disable` is true (default), also sets `disabled` to prevent * accidental submit during async operations. * - When `label` is provided, temporarily swaps the button's text content * and restores the original on `false`. */ export declare function setButtonLoading(button: HTMLButtonElement, loading: boolean, options?: ButtonLoadingOptions): void; /** * Hydrate `.blora-button[data-icon]` with `createBloraIcon()`. * Safe to call more than once — existing injected icons are left alone. */ export declare function enhanceButtons(root?: ParentNode): void; //# sourceMappingURL=button.d.ts.map