/** * Alert type for styling. */ export type AlertType = "error" | "success" | "warning"; /** * Generates an alert box HTML with title and message. * @param type - The alert type (success, error, warning). * @param title - The alert title. * @param message - The alert message (can include HTML). * @param escapeMessage - Whether to escape the message HTML (default true). * @returns HTML string for the alert box. */ export declare function generateAlert(type: AlertType, title: string, message: string, escapeMessage?: boolean): string; /** * Generates a simple alert box without a title. * @param type - The alert type (success, error, warning). * @param message - The alert message. * @returns HTML string for the alert box. */ export declare function generateSimpleAlert(type: AlertType, message: string): string; /** * Button variant for styling. */ export type ButtonVariant = "danger" | "delete" | "edit" | "primary" | "secondary"; /** * Button size for styling. */ export type ButtonSize = "md" | "sm"; /** * Options for button generation. */ export interface ButtonOptions { className?: string; disabled?: boolean; id?: string; onclick?: string; size?: ButtonSize; type?: "button" | "reset" | "submit"; variant: ButtonVariant; } /** * Generates a button HTML element. * @param label - The button label text. * @param options - Button configuration options. * @returns HTML string for the button. */ export declare function generateButton(label: string, options: ButtonOptions): string; /** * Badge variant for styling. */ export type BadgeVariant = "builtin" | "custom" | "env" | "flag" | "override"; /** * Generates a badge HTML element. * @param label - The badge label text. * @param variant - The badge style variant. * @returns HTML string for the badge. */ export declare function generateBadge(label: string, variant: BadgeVariant): string; /** * Generates a status indicator (colored dot with label). * @param status - The status type (healthy, error, etc.). * @param label - The label text. * @returns HTML string for the status indicator. */ export declare function generateStatusIndicator(status: string, label: string): string; /** * Options for text input generation. */ export interface TextInputOptions { disabled?: boolean; hint?: string; id: string; max?: number; min?: number; name: string; pattern?: string; placeholder?: string; required?: boolean; step?: string; type?: string; value?: string; } /** * Generates a form row with label and text input. * @param label - The input label. * @param options - Input configuration options. * @returns HTML string for the form row. */ export declare function generateTextInput(label: string, options: TextInputOptions): string; /** * Option item for select dropdown. */ export interface SelectOption { label: string; selected?: boolean; value: string; } /** * Options for select dropdown generation. */ export interface SelectOptions { disabled?: boolean; hint?: string; id: string; name: string; options: SelectOption[]; required?: boolean; } /** * Generates a form row with label and select dropdown. * @param label - The select label. * @param config - Select configuration options. * @returns HTML string for the form row. */ export declare function generateSelect(label: string, config: SelectOptions): string; /** * Generates a code block with optional copy button. * @param content - The code content. * @param showCopyButton - Whether to show a copy button. * @param copyButtonId - ID for the copy button (required if showCopyButton is true). * @returns HTML string for the code block. */ export declare function generateCodeBlock(content: string, showCopyButton?: boolean, copyButtonId?: string): string; /** * Generates a section container with optional heading. * @param content - The section content (HTML). * @param heading - Optional section heading. * @param headingLevel - Heading level (2 or 3, default 3). * @returns HTML string for the section. */ export declare function generateSection(content: string, heading?: string, headingLevel?: 2 | 3): string; /** * Generates a panel header with title and optional action button. * @param title - The panel title. * @param actionHtml - Optional action button HTML (not escaped). * @returns HTML string for the panel header. */ export declare function generatePanelHeader(title: string, actionHtml?: string): string;