import React, { ElementType, ReactNode, Ref } from 'react'; import { Props } from '../../types.js'; import { HasDisplayName, RefProp } from '../../utils/render.js'; interface SharedData { slot?: {}; name?: string; props?: {}; } interface DescriptionProviderProps extends SharedData { children: ReactNode; } export declare function useDescriptions(): [ string | undefined, (props: DescriptionProviderProps) => JSX.Element ]; declare let DEFAULT_DESCRIPTION_TAG: "p"; export type DescriptionProps = Props; declare function DescriptionFn(props: DescriptionProps, ref: Ref): React.ReactElement> | null; export interface ComponentDescription extends HasDisplayName { (props: DescriptionProps & RefProp): JSX.Element; } export declare let Description: ComponentDescription; export {};