import type { EventCondition } from "../dom/create.js"; type StyleDeclaration = { -readonly [K in keyof CSSStyleDeclaration]?: CSSStyleDeclaration[K]; }; /** Base component configuration interface */ export interface BaseComponentConfig { componentName?: string; class?: string | string[]; className?: string | string[]; parent?: HTMLElement | string | null; id?: string; name?: string; title?: string; tabIndex?: number; style?: Partial; data?: Record; role?: string; ariaLabel?: string; ariaDescribedBy?: string; ariaLabelledBy?: string; ariaHidden?: boolean; } /** * Creates a base configuration for any component * @param defaults * @param userConfig * @param componentName */ export declare const createComponentConfig: (defaults: T, userConfig: Partial | undefined, componentName: string) => T & { componentName: string; prefix: string; }; export declare const processClassNames: (classNames: string | string[] | null) => string; /** * Creates a configuration object for withElement HOC * @param config * @param options */ export declare const createElementConfig: (config: BaseComponentConfig, options: { tag: string; attributes?: Record; className?: string | (string | null | undefined)[] | null; /** Styles the component computes for itself, as properties. */ style?: Partial; html?: string; text?: string; forwardEvents?: Record; interactive?: boolean; }) => { tag: string; componentName: string | undefined; attributes: Record; className: string[] | undefined; id: string | undefined; name: string | undefined; title: string | undefined; tabIndex: number | undefined; style: StyleDeclaration | undefined; data: Record | undefined; role: string | undefined; ariaLabel: string | undefined; ariaDescribedBy: string | undefined; ariaLabelledBy: string | undefined; ariaHidden: boolean | undefined; html: string | undefined; text: string | undefined; forwardEvents: Record; interactive: boolean | undefined; }; export {};