/** * UI Component Utilities * Common reusable components */ export interface ToggleOptions { checked: boolean; onChange: (checked: boolean) => void; ariaLabel?: string; disabled?: boolean; } export declare function createToggle(options: ToggleOptions): HTMLButtonElement; export type BadgeVariant = 'success' | 'error' | 'warning' | 'info' | 'neutral'; export interface BadgeOptions { text: string; variant?: BadgeVariant; } export declare function createBadge(options: BadgeOptions): HTMLSpanElement; export type ButtonVariant = 'default' | 'primary' | 'danger'; export interface ButtonOptions { text: string; variant?: ButtonVariant; small?: boolean; icon?: string; disabled?: boolean; onClick: () => void; } export declare function createButton(options: ButtonOptions): HTMLButtonElement; export interface InputOptions { value?: string; placeholder?: string; ariaLabel?: string; small?: boolean; onInput?: (value: string) => void; } export declare function createInput(options: InputOptions): HTMLInputElement; export interface ListItemOptions { title: string; description?: string; actions?: HTMLElement[]; } export declare function createListItem(options: ListItemOptions): HTMLElement; export interface SectionOptions { title: string; actions?: HTMLElement[]; children: HTMLElement[]; } export declare function createSection(options: SectionOptions): HTMLElement; export interface InfoRowOptions { label: string; value: string; } export declare function createInfoRow(options: InfoRowOptions): HTMLElement; export interface EmptyStateOptions { icon?: string; text: string; } export declare function createEmptyState(options: EmptyStateOptions): HTMLElement; export interface GridOptions { columns?: 2 | 3; children: HTMLElement[]; } export declare function createGrid(options: GridOptions): HTMLElement; export interface GridCardOptions { title: string; action?: HTMLElement; } export declare function createGridCard(options: GridCardOptions): HTMLElement; /** * Creates a "Store not connected" message element * Used when the c15t store is not available */ export declare function createDisconnectedState(message?: string): HTMLElement;