import type { BadgeComponent as Badge } from "../../components/badge/index.js"; import { EventCallback } from "../state/emitter.js"; import { BaseComponent, ElementComponent } from "./component.js"; /** Configuration for component creation */ interface ComponentConfig { [key: string]: unknown; } /** Basic component interface */ interface Component { /** Component element */ element: HTMLElement | null; /** Component configuration */ config: ComponentConfig; /** Setup method */ setup: () => Component; } /** * Creates a basic component with minimal structure * @param config */ declare const createComponent: (config?: object) => Component; interface BadgeConfig { badge?: string | number; badgeConfig?: { variant?: string; color?: string; size?: string; position?: string; max?: number; }; prefix?: string; } interface BadgeComponent extends BaseComponent { badge?: Badge; } declare const withBadge: (config: T) => (component: C) => C & BadgeComponent; /** Configuration for checkable feature */ interface CheckableConfig { checked?: boolean; } /** Component with input element */ interface InputComponent_1 extends BaseComponent { element: HTMLElement; input: HTMLInputElement; emit?: (event: string, data: unknown) => unknown; /** This feature only subscribes to change and does not read its payload. */ on?: (event: "change", handler: () => void) => unknown; } /** Checkable state manager interface */ interface CheckableManager { /** Sets the checked state to true. */ check: () => CheckableManager; /** Sets the checked state to false. */ uncheck: () => CheckableManager; /** Toggles the current checked state. */ toggle: () => CheckableManager; /** Gets the current checked state */ isChecked: () => boolean; } /** Component with checkable capabilities */ interface CheckableComponent extends BaseComponent { checkable: CheckableManager; } /** * Adds checked state management to a component with an input * @param config */ declare const withCheckable: (config?: T) => (component: C) => C & CheckableComponent; interface ComponentWithLifecycle_1 extends ElementComponent { lifecycle: { destroy: () => void; [key: string]: unknown; }; } /** Configuration for debounced event handlers */ interface DebounceConfig { /** Event handlers with debounce settings */ debouncedEvents?: Record void; wait: number; options?: { leading?: boolean; maxWait?: number; }; }>; } /** Component with debounced event capabilities */ interface DebounceComponent extends BaseComponent { /** * Adds a debounced event listener * @param event * @param handler * @param wait * @param options */ addDebouncedEvent: (event: string, handler: (event: Event) => void, wait: number, options?: { leading?: boolean; maxWait?: number; }) => DebounceComponent; /** * Removes a debounced event listener * @param event */ removeDebouncedEvent: (event: string) => DebounceComponent; } /** * Adds debounced event handling capabilities to a component * @param config */ declare const withDebounce: (config?: T) => (component: C) => C & DebounceComponent; /** Configuration for disabled feature */ interface DisabledConfig { disabled?: boolean; componentName?: string; } /** Disabled state manager interface */ interface DisabledManager { /** Enables the component */ enable(): DisabledManager; /** Disables the component */ disable(): DisabledManager; /** Toggles the disabled state */ toggle(): DisabledManager; /** Checks if the component is disabled */ isDisabled(): boolean; } /** Component with disabled state capabilities */ interface DisabledComponent extends BaseComponent { disabled: DisabledManager; } /** * Adds disabled state management to a component * @param config */ declare const withDisabled: (config: T) => (component: C) => C & DisabledComponent; /** A component's events, by name: each one's handler. */ type EventMap = { [K in keyof E]: EventCallback; }; /** The map of a component that does not name its events. */ type AnyEvents = Record; /** Component with event capabilities */ interface EventComponent = AnyEvents> extends BaseComponent { /** * Subscribe to an event * @param event * @param handler */ on(event: K, handler: E[K]): this; /** * Unsubscribe from an event * @param event * @param handler */ off(event: K, handler: E[K]): this; /** * Emit an event * @param event * @param data */ emit(event: string, data?: unknown): this; } /** Adds event handling capabilities to a component Returns event system ready to use immediately `withEvents()` names the component's events: `on` and `off` then check each name and its handler's payload. */ declare const withEvents: = AnyEvents>() => (component: T) => T & EventComponent; /** Input configuration options */ interface InputConfig { /** Input name attribute */ name?: string; /** Initial checked state */ checked?: boolean; /** Whether input is required */ required?: boolean; /** Whether input is disabled */ disabled?: boolean; /** Input value attribute */ value?: string; /** Accessibility label text */ label?: string | Node; /** Alternative accessibility label */ ariaLabel?: string; /** Component name for classes */ componentName?: string; /** * Whether Enter toggles the input as Space does * @default true */ enterToggles?: boolean; } /** What withInput adds to a component. */ interface InputFeature { /** Input element */ input: HTMLInputElement; /** Gets the checked state: the `value` a `change` carries */ getValue: () => boolean; /** * Checks or unchecks the input. * @param value */ setValue(value: boolean): this; /** Gets the input's `value` attribute: the string a form submits while checked */ getValueAttribute: () => string; /** * Sets the input's `value` attribute. * @param value */ setValueAttribute(value: string): this; /** Event emission method if available */ emit?(event: string, data: unknown): this; } /** Component with input element and related methods */ interface InputComponent extends ElementComponent, InputFeature { } /** * Creates an input element and adds it to a component Handles both input creation and event emission for state changes `change` carries `{ checked, value, valueAttribute, nativeEvent }`: `value` is the checked boolean, as the checkbox and the switch report it, and `valueAttribute` the input's string value. * @param config */ declare const withInput: (config?: T) => (component: C) => C & InputFeature; interface ComponentManagers { events?: { destroy: () => void; }; text?: { getElement: () => HTMLElement | null; }; icon?: { getElement: () => HTMLElement | null; }; [key: string]: unknown; } /** Lifecycle methods interface */ interface Lifecycle { /** * Registers a handler for mount event * @param handler */ onMount: (handler: () => void) => () => void; /** * Registers a handler for unmount event * @param handler */ onUnmount: (handler: () => void) => () => void; /** Mounts the component */ mount: () => void; /** Unmounts the component */ unmount: () => void; /** Checks if component is mounted */ isMounted: () => boolean; /** Destroys the component */ destroy: () => void; } /** Component with lifecycle capabilities */ interface LifecycleComponent extends BaseComponent { lifecycle: Lifecycle; } /** Adds lifecycle management to a component */ declare const withLifecycle: () => >>(component: T) => T & LifecycleComponent; declare enum POSITIONS { LEFT = "left", RIGHT = "right", TOP = "top", BOTTOM = "bottom", START = "start", END = "end", CENTER = "center" } /** Configuration for position feature */ interface PositionConfig { position?: string; prefix?: string; componentName?: string; } /** Position manager interface */ interface PositionManager { /** * Sets the component's position * @param newPosition */ setPosition: (newPosition: string) => PositionManager; /** Gets the current position */ getPosition: () => string; } /** Component with position capabilities */ interface PositionComponent extends BaseComponent { position: PositionManager; } /** * Adds positioning functionality to a component * @param config */ declare const withPosition: (config: T) => (component: C) => C & PositionComponent; /** Ripple configuration interface */ interface RippleConfig { /** How long, in milliseconds, a released wave lingers before it is removed */ duration?: number; } /** Ripple controller interface */ interface RippleController { /** * Mounts ripple effect to an element * @param element */ mount: (element: HTMLElement) => void; /** * Unmounts ripple effect from an element * @param element */ unmount: (element: HTMLElement) => void; } /** Configuration for ripple feature */ interface RippleFeatureConfig { ripple?: boolean; rippleConfig?: RippleConfig; } /** Component with ripple capabilities */ interface RippleComponent extends BaseComponent { ripple: RippleController; } declare const createRipple: (config?: RippleConfig) => RippleController; /** * Adds ripple effect functionality to a component * @param config */ declare const withRipple: (config: T) => >(component: C) => C & RippleComponent; /** Configuration for size feature */ interface SizeConfig { size?: string; prefix?: string; componentName?: string; } /** * Adds a size class to a component * @param config */ declare const withSize: (config: T) => (component: C) => C; /** Configuration for style feature */ interface StyleConfig { variant?: string; size?: string; } /** * Adds style classes to a component based on configuration * @param config */ declare const withStyle: (config?: T) => (component: C) => C; /** Configuration for text input feature */ interface TextInputConfig { /** Input type (text, password, etc.) */ type?: string; /** Whether to use textarea instead of input */ multiline?: boolean; /** Input name attribute */ name?: string; /** Whether input is required */ required?: boolean; /** Whether input is disabled */ disabled?: boolean; /** Maximum allowed length */ maxLength?: number; /** Input validation pattern */ pattern?: string; /** Autocomplete setting */ autocomplete?: string; /** Virtual keyboard to show for the input (`inputmode`) */ inputMode?: string; /** The virtual keyboard's Enter key label (`enterkeyhint`) */ enterKeyHint?: string; /** Initial input value */ value?: string; /** Placeholder attribute */ placeholder?: string; /** Accessible name for the native input or textarea. */ ariaLabel?: string; /** Whether input is readonly */ readonly?: boolean; } /** What withTextInput adds to a component. */ interface TextInputFeature { /** Input element */ input: HTMLInputElement | HTMLTextAreaElement; /** * Sets the input value * @param value */ setValue(value: string): this; /** Gets the current input value */ getValue: () => string; /** * Sets an attribute on the input * @param name * @param value */ setAttribute(name: string, value: string): this; /** * Gets an attribute from the input * @param name */ getAttribute(name: string): string | null; /** * Removes an attribute from the input * @param name */ removeAttribute(name: string): this; /** Event emission method if available */ emit?(event: string, data: unknown): this; } /** Component with text input element and related methods */ interface TextInputComponent extends ElementComponent, TextInputFeature { } /** * Enhances a component with text input functionality * @param config */ declare const withTextInput: (config?: T) => (component: C) => C & TextInputFeature; /** Configuration for text label feature */ interface TextLabelConfig { /** Label text */ /** The label: text, or a node placed inside the label element (the web components pass a `` so the page's content is the label). */ label?: string | Node; /** Label position ('start' or 'end') */ labelPosition?: "start" | "end"; /** CSS class prefix */ prefix?: string; /** Component name for class generation */ componentName?: string; } /** Label manager interface */ interface LabelManager { /** * Sets the label text * @param text */ setText: (text: string) => LabelManager; /** Gets the current label text */ getText: () => string; /** Gets the label element */ getElement: () => HTMLElement; } /** Component with label capabilities */ interface LabelComponent extends BaseComponent { label: LabelManager; } /** * Adds a text label to a component * @param config */ declare const withTextLabel: (config?: T) => (component: C) => C & LabelComponent; /** Configuration for throttled event handlers */ interface ThrottleConfig { /** Event handlers with throttle settings */ throttledEvents?: Record void; wait: number; options?: { leading?: boolean; trailing?: boolean; }; }>; } /** Component with throttled event capabilities */ interface ThrottleComponent extends BaseComponent { /** * Adds a throttled event listener * @param event * @param handler * @param wait * @param options */ addThrottledEvent: (event: string, handler: (event: Event) => void, wait: number, options?: { leading?: boolean; trailing?: boolean; }) => ThrottleComponent; /** * Removes a throttled event listener * @param event */ removeThrottledEvent: (event: string) => ThrottleComponent; } /** * Adds throttled event handling capabilities to a component * @param config */ declare const withThrottle: (config?: T) => (component: C) => C & ThrottleComponent; /** Configuration for track feature */ interface TrackConfig { /** CSS class prefix */ prefix: string; /** Component name for class generation */ componentName: string; /** Custom icon HTML or 'none' */ icon?: string; /** Icon HTML shown in the unselected handle, which then grows to 24dp: M3's "icon on selected and unselected switch" configuration. */ unselectedIcon?: string; /** When true, the thumb graphic is `aria-hidden`. */ controlLabelOnly?: boolean; } /** Component with track and thumb elements */ interface TrackComponent extends BaseComponent { /** Track element */ track: HTMLElement; /** Thumb element */ thumb: HTMLElement; } /** * Adds track and thumb elements to a component * @param config */ declare const withTrack: (config: T) => (component: C) => C & TrackComponent; /** Configuration for variant feature */ interface VariantConfig { variant?: string; prefix?: string; componentName?: string; } /** * Adds a variant class to a component * @param config */ declare const withVariant: (config: T) => (component: C) => C; /** Event manager interface */ interface EnhancedEventManager { /** Add an event listener */ on: (event: string, handler: Function) => EnhancedEventManager; /** Remove an event listener */ off: (event: string, handler: Function) => EnhancedEventManager; /** Add multiple event listeners at once */ addListeners: (listeners: Record) => EnhancedEventManager; /** Remove multiple event listeners at once */ removeListeners: (listeners: Record) => EnhancedEventManager; /** One-time event handler */ once: (event: string, handler: Function) => EnhancedEventManager; /** Clean up all event listeners */ destroy: () => void; } /** Component with enhanced event capabilities */ interface EnhancedEventComponent extends BaseComponent { events: EnhancedEventManager; on(event: string, handler: Function): this; off(event: string, handler: Function): this; } /** * Adds enhanced event handling capabilities to a component * @param target */ declare const withEnhancedEvents: (target?: HTMLElement) => (component: C) => C & EnhancedEventComponent; /** * Performs left-to-right function composition. * @param fns */ declare function pipe(f1: (arg: A) => B): (x: A) => B; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C): (x: A) => C; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D): (x: A) => D; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E): (x: A) => E; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F): (x: A) => F; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G): (x: A) => G; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H): (x: A) => H; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I): (x: A) => I; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J): (x: A) => J; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J, f10: (arg: J) => K): (x: A) => K; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J, f10: (arg: J) => K, f11: (arg: K) => L): (x: A) => L; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J, f10: (arg: J) => K, f11: (arg: K) => L, f12: (arg: L) => M): (x: A) => M; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J, f10: (arg: J) => K, f11: (arg: K) => L, f12: (arg: L) => M, f13: (arg: M) => N): (x: A) => N; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J, f10: (arg: J) => K, f11: (arg: K) => L, f12: (arg: L) => M, f13: (arg: M) => N, f14: (arg: N) => O): (x: A) => O; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J, f10: (arg: J) => K, f11: (arg: K) => L, f12: (arg: L) => M, f13: (arg: M) => N, f14: (arg: N) => O, f15: (arg: O) => P): (x: A) => P; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J, f10: (arg: J) => K, f11: (arg: K) => L, f12: (arg: L) => M, f13: (arg: M) => N, f14: (arg: N) => O, f15: (arg: O) => P, f16: (arg: P) => Q): (x: A) => Q; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J, f10: (arg: J) => K, f11: (arg: K) => L, f12: (arg: L) => M, f13: (arg: M) => N, f14: (arg: N) => O, f15: (arg: O) => P, f16: (arg: P) => Q, f17: (arg: Q) => R): (x: A) => R; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J, f10: (arg: J) => K, f11: (arg: K) => L, f12: (arg: L) => M, f13: (arg: M) => N, f14: (arg: N) => O, f15: (arg: O) => P, f16: (arg: P) => Q, f17: (arg: Q) => R, f18: (arg: R) => S): (x: A) => S; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J, f10: (arg: J) => K, f11: (arg: K) => L, f12: (arg: L) => M, f13: (arg: M) => N, f14: (arg: N) => O, f15: (arg: O) => P, f16: (arg: P) => Q, f17: (arg: Q) => R, f18: (arg: R) => S, f19: (arg: S) => T): (x: A) => T; declare function pipe(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J, f10: (arg: J) => K, f11: (arg: K) => L, f12: (arg: L) => M, f13: (arg: M) => N, f14: (arg: N) => O, f15: (arg: O) => P, f16: (arg: P) => Q, f17: (arg: Q) => R, f18: (arg: R) => S, f19: (arg: S) => T, f20: (arg: T) => U): (x: A) => U; declare function pipe(...fns: Array<(arg: T) => T>): (x: T) => T; /** * Performs right-to-left function composition. * @param fns */ declare function compose(f1: (arg: A) => B): (x: A) => B; declare function compose(f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => C; declare function compose(f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => D; declare function compose(f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => E; declare function compose(f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => F; declare function compose(f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => G; declare function compose(f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => H; declare function compose(f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => I; declare function compose(f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => J; declare function compose(f10: (arg: J) => K, f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => K; declare function compose(f11: (arg: K) => L, f10: (arg: J) => K, f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => L; declare function compose(f12: (arg: L) => M, f11: (arg: K) => L, f10: (arg: J) => K, f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => M; declare function compose(f13: (arg: M) => N, f12: (arg: L) => M, f11: (arg: K) => L, f10: (arg: J) => K, f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => N; declare function compose(f14: (arg: N) => O, f13: (arg: M) => N, f12: (arg: L) => M, f11: (arg: K) => L, f10: (arg: J) => K, f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => O; declare function compose(f15: (arg: O) => P, f14: (arg: N) => O, f13: (arg: M) => N, f12: (arg: L) => M, f11: (arg: K) => L, f10: (arg: J) => K, f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => P; declare function compose(f16: (arg: P) => Q, f15: (arg: O) => P, f14: (arg: N) => O, f13: (arg: M) => N, f12: (arg: L) => M, f11: (arg: K) => L, f10: (arg: J) => K, f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => Q; declare function compose(f17: (arg: Q) => R, f16: (arg: P) => Q, f15: (arg: O) => P, f14: (arg: N) => O, f13: (arg: M) => N, f12: (arg: L) => M, f11: (arg: K) => L, f10: (arg: J) => K, f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => R; declare function compose(f18: (arg: R) => S, f17: (arg: Q) => R, f16: (arg: P) => Q, f15: (arg: O) => P, f14: (arg: N) => O, f13: (arg: M) => N, f12: (arg: L) => M, f11: (arg: K) => L, f10: (arg: J) => K, f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => S; declare function compose(f19: (arg: S) => T, f18: (arg: R) => S, f17: (arg: Q) => R, f16: (arg: P) => Q, f15: (arg: O) => P, f14: (arg: N) => O, f13: (arg: M) => N, f12: (arg: L) => M, f11: (arg: K) => L, f10: (arg: J) => K, f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => T; declare function compose(f20: (arg: T) => U, f19: (arg: S) => T, f18: (arg: R) => S, f17: (arg: Q) => R, f16: (arg: P) => Q, f15: (arg: O) => P, f14: (arg: N) => O, f13: (arg: M) => N, f12: (arg: L) => M, f11: (arg: K) => L, f10: (arg: J) => K, f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => U; declare function compose(...fns: Array<(arg: T) => T>): (x: T) => T; /** * Creates a function that applies transformations to an object with shared context. * @param transformers */ declare const transform: >(...transformers: Array<(obj: T, context: C) => Partial>) => (obj: T, context?: C) => T; /** Interface for components with lifecycle */ interface ComponentWithLifecycle extends ElementComponent { lifecycle: { destroy: () => void; [key: string]: unknown; }; } /** Interface for components with emit method */ interface ComponentWithEmit extends ElementComponent { emit: (event: string, data: unknown) => unknown; } /** Type guard to check if component has lifecycle */ declare function hasLifecycle(component: object): component is ComponentWithLifecycle; /** Type guard to check if component has emit method */ declare function hasEmit(component: object): component is ComponentWithEmit; export type { CheckableComponent, CheckableManager, Component, ComponentWithEmit, ComponentWithLifecycle, DebounceComponent, DebounceConfig, DisabledComponent, DisabledManager, EnhancedEventComponent, EventComponent, InputComponent, LabelComponent, LabelManager, Lifecycle, LifecycleComponent, RippleComponent, TextInputComponent, ThrottleComponent, ThrottleConfig, TrackComponent }; export { compose, createComponent, hasEmit, hasLifecycle, pipe, transform, withCheckable, withDebounce, withDisabled, withEnhancedEvents, withEvents, withInput, withLifecycle, withPosition, withRipple, withSize, withStyle, withTextInput, withTextLabel, withThrottle, withTrack, withVariant }; export type { BaseComponent, BaseConfig, ElementComponent, TouchState, WithElementOptions } from "./component.js"; export type { IconComponent } from "./features/icon.js"; export type { TextComponent } from "./features/text.js"; export { createBase, withElement } from "./component.js"; export { withIcon } from "./features/icon.js"; export { withText } from "./features/text.js";