import React from 'react'; import Box, { BoxProps } from '../../Box/Box'; export type ComponentProps = BoxProps & React.HTMLAttributes; interface Props extends React.HTMLAttributes { name: string; componentAs?: T; componentClassPrefix?: string; } /** * Create a component with `classPrefix` and `as` attributes. * By default, the component is based on Box component and inherits all Box props. */ export declare function createComponent({ name, componentAs, componentClassPrefix, ...defaultProps }: Props & Partial

): import("../../types").InternalRefForwardingComponent, never> & Record; export default createComponent;