import type { Component, Props, RefObject } from 'js-widgets'; export { classes, component, createRef, createRefFor, setName }; declare function createRef(value?: T): { current: T | null; }; declare function createRefFor(component: Component<{ ref: RefObject; }>): RefObject; declare function classes(...args: (undefined | null | false | string | (undefined | null | false | string)[] | Record)[]): string; declare function setName(func: Function, name: string): void; declare function component

(main: Component

): Component

; declare function component

(name: string, main: Component

): Component

; declare function component(name: string):

(main: Component

) => Component

; declare function component

(main: Component

): >(defaults: D) => (main: (props: P & D) => () => JSX.Element) => Component

;