import { FCReturn, ForwardRefProps, ReactComponentConstructor } from "../../../typings/shared"; import { FocusScopeCustomComponentProps, FocusScopeDefaultProps, FocusScopeIntrinsicProps } from "../FocusScope"; import { JSX } from "react"; // Props used by Dialog that are not inherited from FocusScope usage interface DialogBaseProps { "aria-labelledby": string; onDismiss?(): void; } // Dialog passes these down to FocusScope without ability to override export type ExcludedDialogPropKeys = | "aria-labelledby" | "aria-modal" | "internalFocusRef" | "onKeyDown" | "role" | "tabIndex"; export interface DialogDefaultProps extends Omit, DialogBaseProps {} export type DialogIntrinsicProps = & Omit< FocusScopeIntrinsicProps, ExcludedDialogPropKeys > & DialogBaseProps; export type DialogCustomComponentProps> = & FocusScopeCustomComponentProps & DialogBaseProps; declare function Dialog(props: ForwardRefProps): FCReturn; declare function Dialog( props: ForwardRefProps>, ): FCReturn; declare function Dialog, R = unknown>( props: ForwardRefProps>, ): FCReturn; export { Dialog };