import * as React from 'react'; export interface AccessibleContentProps { alt?: string; children?: React.ReactNode; /** * the element type to render the screen reader content as */ as?: any; } export class AccessibleContent extends React.Component { render(): JSX.Element; } export type DialogDisplay = "auto" | "block" | "inline-block"; export type DialogDefaultFocusElement = React.ReactElement | ((...args: any[])=>any); export type DialogContentElement = React.ReactElement | ((...args: any[])=>any); export type DialogLiveRegion = React.ReactElement[] | React.ReactElement | ((...args: any[])=>any); export type DialogShouldContainFocus = boolean | "keyboard" | "screenreader"; export interface DialogProps { /** * The children to be rendered within the `` */ children?: React.ReactNode; /** * The element to render as the component root, `span` by default */ as?: any; display?: DialogDisplay; label?: string; /** * Whether or not the `` is open */ open?: boolean; /** * Function called when tab focus leaves the `` focusable content. This only * occurs when `shouldContainFocus` is set to false. */ onBlur?: (...args: any[])=>any; onDismiss?: (...args: any[])=>any; /** * An element or a function returning an element to focus by default */ defaultFocusElement?: DialogDefaultFocusElement; /** * An element or a function returning an element that wraps the content of the `` */ contentElement?: DialogContentElement; /** * An element, function returning an element, or array of elements that will not be hidden from * the screen reader when the `` is open */ liveRegion?: DialogLiveRegion; shouldContainFocus?: DialogShouldContainFocus; shouldReturnFocus?: boolean; shouldCloseOnDocumentClick?: boolean; shouldCloseOnEscape?: boolean; shouldFocusOnOpen?: boolean; } export class Dialog extends React.Component { render(): JSX.Element; } export interface PresentationContentProps { children?: React.ReactNode; /** * the element type to render as */ as?: any; } export class PresentationContent extends React.Component { render(): JSX.Element; } export interface ScreenReaderContentProps { /** * the element type to render as */ as?: any; /** * content meant for screen readers only */ children?: React.ReactNode; } export class ScreenReaderContent extends React.Component { render(): JSX.Element; }