import type { As } from 'reakit-utils/types'; import type { GeChiUIComponentProps, GeChiUIComponentFromProps } from '../context'; interface Options> { as: A; name: string; useHook: (props: P) => any; memo?: boolean; } /** * Factory that creates a React component from a hook * * @param options * @param options.as The element to render for the component. * @param options.name The name of the component. * @param options.useHook The hook to use for the component * @param options.memo Whether to memo the component. * @return A polymorphic component that uses the hook to process props. */ export declare const createComponent: , P extends GeChiUIComponentProps<{}, A, any>>({ as, name, useHook, memo, }: Options) => GeChiUIComponentFromProps

; export {}; //# sourceMappingURL=create-component.d.ts.map