import React from 'react'; type Override = Omit & U; type Override2 = Override, V>; type BoxDefault = Override2, { as?: never; href?: never; }, ExtraProps>; type BoxAnchorDefault = Override2, { as?: never; href: string; }, ExtraProps>; type BoxIntrinsic = Override2, { /** * The component or HTML Element that the button is rendered as. * * @type HTML Element | React.Component */ as: TElement; }, ExtraProps>; type BoxComponent = Override2, { /** * The component or HTML Element that the button is rendered as. */ as: React.ComponentType>; }, ExtraProps>; /** * A flexible polymorphic type for the Box component, which allows various implementations: * - Default anchor element * - Any intrinsic JSX element * - Custom React component * - Default element type * * @deprecated Prefer using Polymorphic types from `@leafygreen-ui/polymorphic` package. * @typeParam Default - The default React element type to render, defaults to 'div' * @typeParam ExtraProps - Additional props to extend the component with */ export type BoxProps = BoxAnchorDefault | BoxIntrinsic | BoxComponent<{}, ExtraProps> | BoxDefault; declare function InlineBox(props: BoxDefault, ref: React.Ref): JSX.Element; declare function InlineBox(props: BoxAnchorDefault, ref: React.Ref): JSX.Element; declare function InlineBox(props: BoxIntrinsic, ref: React.Ref): JSX.Element; declare function InlineBox(props: BoxComponent, ref: React.Ref): JSX.Element; declare namespace InlineBox { var displayName: string; } /** * The Box component handles the `as` prop, allowing the component to be rendered using alternate HTML elements. * * It also defaults to an `` tag when a `href` prop is set. */ declare const Box: typeof InlineBox; export default Box; export interface ExtendableBox extends Pick>>, 'displayName' | 'propTypes'> { (props: BoxIntrinsic): JSX.Element | null; (props: BoxAnchorDefault): JSX.Element | null; (props: BoxDefault): JSX.Element | null; (props: BoxComponent): JSX.Element | null; } //# sourceMappingURL=Box.d.ts.map