import React, { ElementType, MutableRefObject, Ref } from 'react'; import { Props } from '../../types'; import { PropsForFeatures } from '../../utils/render'; import { Description } from '../description/description'; interface DialogRenderPropArg { open: boolean; } declare type DialogPropsWeControl = 'id' | 'role' | 'aria-modal' | 'aria-describedby' | 'aria-labelledby' | 'onClick'; declare let DialogRenderFeatures: number; interface OverlayRenderPropArg { open: boolean; } declare type OverlayPropsWeControl = 'id' | 'aria-hidden' | 'onClick'; declare let DEFAULT_TITLE_TAG: "h2"; interface TitleRenderPropArg { open: boolean; } declare type TitlePropsWeControl = 'id'; declare function Title(props: Props): React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | null; export declare let Dialog: ( = "div">(props: (Pick, Exclude, "children" | "id" | "as" | "refName" | "className">> & { as?: TTag | undefined; children?: string | number | boolean | {} | React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.ReactNodeArray | React.ReactPortal | ((bag: DialogRenderPropArg) => React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>) | null | undefined; refName?: string | undefined; } & (import("../../types").PropsOf extends { className?: any; } ? { className?: string | ((bag: DialogRenderPropArg) => string) | undefined; } : {}) & { static?: undefined; } & { unmount?: boolean | undefined; } & { open?: boolean | undefined; onClose(value: boolean): void; initialFocus?: React.MutableRefObject | undefined; }) | (Pick, Exclude, "children" | "id" | "as" | "refName" | "className">> & { as?: TTag | undefined; children?: string | number | boolean | {} | React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.ReactNodeArray | React.ReactPortal | ((bag: DialogRenderPropArg) => React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>) | null | undefined; refName?: string | undefined; } & (import("../../types").PropsOf extends { className?: any; } ? { className?: string | ((bag: DialogRenderPropArg) => string) | undefined; } : {}) & { unmount?: undefined; } & { static?: boolean | undefined; } & { open?: boolean | undefined; onClose(value: boolean): void; initialFocus?: React.MutableRefObject | undefined; }) | (Pick, Exclude, "children" | "role" | "as" | "refName" | "className">> & { as?: TTag | undefined; children?: string | number | boolean | {} | React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.ReactNodeArray | React.ReactPortal | ((bag: DialogRenderPropArg) => React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>) | null | undefined; refName?: string | undefined; } & (import("../../types").PropsOf extends { className?: any; } ? { className?: string | ((bag: DialogRenderPropArg) => string) | undefined; } : {}) & { static?: undefined; } & { unmount?: boolean | undefined; } & { open?: boolean | undefined; onClose(value: boolean): void; initialFocus?: React.MutableRefObject | undefined; }) | (Pick, Exclude, "children" | "role" | "as" | "refName" | "className">> & { as?: TTag | undefined; children?: string | number | boolean | {} | React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.ReactNodeArray | React.ReactPortal | ((bag: DialogRenderPropArg) => React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>) | null | undefined; refName?: string | undefined; } & (import("../../types").PropsOf extends { className?: any; } ? { className?: string | ((bag: DialogRenderPropArg) => string) | undefined; } : {}) & { unmount?: undefined; } & { static?: boolean | undefined; } & { open?: boolean | undefined; onClose(value: boolean): void; initialFocus?: React.MutableRefObject | undefined; }) | (Pick, Exclude, "children" | "aria-modal" | "as" | "refName" | "className">> & { as?: TTag | undefined; children?: string | number | boolean | {} | React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.ReactNodeArray | React.ReactPortal | ((bag: DialogRenderPropArg) => React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>) | null | undefined; refName?: string | undefined; } & (import("../../types").PropsOf extends { className?: any; } ? { className?: string | ((bag: DialogRenderPropArg) => string) | undefined; } : {}) & { static?: undefined; } & { unmount?: boolean | undefined; } & { open?: boolean | undefined; onClose(value: boolean): void; initialFocus?: React.MutableRefObject | undefined; }) | (Pick, Exclude, "children" | "aria-modal" | "as" | "refName" | "className">> & { as?: TTag | undefined; children?: string | number | boolean | {} | React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.ReactNodeArray | React.ReactPortal | ((bag: DialogRenderPropArg) => React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>) | null | undefined; refName?: string | undefined; } & (import("../../types").PropsOf extends { className?: any; } ? { className?: string | ((bag: DialogRenderPropArg) => string) | undefined; } : {}) & { unmount?: undefined; } & { static?: boolean | undefined; } & { open?: boolean | undefined; onClose(value: boolean): void; initialFocus?: React.MutableRefObject | undefined; }) | (Pick, Exclude, "children" | "aria-describedby" | "as" | "refName" | "className">> & { as?: TTag | undefined; children?: string | number | boolean | {} | React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.ReactNodeArray | React.ReactPortal | ((bag: DialogRenderPropArg) => React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>) | null | undefined; refName?: string | undefined; } & (import("../../types").PropsOf extends { className?: any; } ? { className?: string | ((bag: DialogRenderPropArg) => string) | undefined; } : {}) & { static?: undefined; } & { unmount?: boolean | undefined; } & { open?: boolean | undefined; onClose(value: boolean): void; initialFocus?: React.MutableRefObject | undefined; }) | (Pick, Exclude, "children" | "aria-describedby" | "as" | "refName" | "className">> & { as?: TTag | undefined; children?: string | number | boolean | {} | React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.ReactNodeArray | React.ReactPortal | ((bag: DialogRenderPropArg) => React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>) | null | undefined; refName?: string | undefined; } & (import("../../types").PropsOf extends { className?: any; } ? { className?: string | ((bag: DialogRenderPropArg) => string) | undefined; } : {}) & { unmount?: undefined; } & { static?: boolean | undefined; } & { open?: boolean | undefined; onClose(value: boolean): void; initialFocus?: React.MutableRefObject | undefined; }) | (Pick, Exclude, "children" | "aria-labelledby" | "as" | "refName" | "className">> & { as?: TTag | undefined; children?: string | number | boolean | {} | React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.ReactNodeArray | React.ReactPortal | ((bag: DialogRenderPropArg) => React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>) | null | undefined; refName?: string | undefined; } & (import("../../types").PropsOf extends { className?: any; } ? { className?: string | ((bag: DialogRenderPropArg) => string) | undefined; } : {}) & { static?: undefined; } & { unmount?: boolean | undefined; } & { open?: boolean | undefined; onClose(value: boolean): void; initialFocus?: React.MutableRefObject | undefined; }) | (Pick, Exclude, "children" | "aria-labelledby" | "as" | "refName" | "className">> & { as?: TTag | undefined; children?: string | number | boolean | {} | React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.ReactNodeArray | React.ReactPortal | ((bag: DialogRenderPropArg) => React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>) | null | undefined; refName?: string | undefined; } & (import("../../types").PropsOf extends { className?: any; } ? { className?: string | ((bag: DialogRenderPropArg) => string) | undefined; } : {}) & { unmount?: undefined; } & { static?: boolean | undefined; } & { open?: boolean | undefined; onClose(value: boolean): void; initialFocus?: React.MutableRefObject | undefined; }) | (Pick, Exclude, "children" | "onClick" | "as" | "refName" | "className">> & { as?: TTag | undefined; children?: string | number | boolean | {} | React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.ReactNodeArray | React.ReactPortal | ((bag: DialogRenderPropArg) => React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>) | null | undefined; refName?: string | undefined; } & (import("../../types").PropsOf extends { className?: any; } ? { className?: string | ((bag: DialogRenderPropArg) => string) | undefined; } : {}) & { static?: undefined; } & { unmount?: boolean | undefined; } & { open?: boolean | undefined; onClose(value: boolean): void; initialFocus?: React.MutableRefObject | undefined; }) | (Pick, Exclude, "children" | "onClick" | "as" | "refName" | "className">> & { as?: TTag | undefined; children?: string | number | boolean | {} | React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.ReactNodeArray | React.ReactPortal | ((bag: DialogRenderPropArg) => React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>) | null | undefined; refName?: string | undefined; } & (import("../../types").PropsOf extends { className?: any; } ? { className?: string | ((bag: DialogRenderPropArg) => string) | undefined; } : {}) & { unmount?: undefined; } & { static?: boolean | undefined; } & { open?: boolean | undefined; onClose(value: boolean): void; initialFocus?: React.MutableRefObject | undefined; }), ref: Ref) => JSX.Element) & { displayName: string; } & { Overlay: ( = "div">(props: Props, ref: Ref) => React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | null) & { displayName: string; }; Title: typeof Title; Description: typeof Description; }; export {};