import { Component } from 'react'; import type { ViewOwnProps } from '@instructure/ui-view/latest'; import type { AlertProps, AlertState } from './props'; /** --- category: components --- **/ declare class Alert extends Component { static readonly componentId = "Alert"; static allowedProps: readonly (keyof { children?: import("react").ReactNode; variant?: "info" | "success" | "warning" | "error"; variantScreenReaderLabel?: string; liveRegion?: Element | null | (() => Element | null | undefined); liveRegionPoliteness?: "polite" | "assertive"; isLiveRegionAtomic?: boolean; screenReaderOnly?: boolean; timeout?: number; margin?: import("@instructure/emotion").Spacing; renderCloseButtonLabel?: import("@instructure/shared-types").Renderable; onDismiss?: () => void; transition?: "none" | "fade"; open?: boolean; hasShadow: boolean; renderCustomIcon?: import("@instructure/shared-types").Renderable; })[]; static defaultProps: { variant: string; margin: string; timeout: number; transition: string; open: boolean; screenReaderOnly: boolean; liveRegionPoliteness: string; isLiveRegionAtomic: boolean; children: null; hasShadow: boolean; }; constructor(props: AlertProps); _timeouts: ReturnType[]; srid: string; variantUI: { error: import("react").ComponentType; info: import("react").ComponentType; success: import("react").ComponentType; warning: import("react").ComponentType; }; ref: Element | null; handleRef: (el: Element | null) => void; handleTimeout: () => void; clearTimeouts(): void; onExitTransition: () => void; close: () => void; isDOMNode(n: Element | null | undefined): boolean | null | undefined; getLiveRegion(): Element | null | undefined; initLiveRegion(liveRegion: Element): void; createScreenreaderContentNode(): import("@emotion/react/jsx-runtime").JSX.Element; createScreenreaderAlert(): void; removeScreenreaderAlert(): void; handleKeyUp: (event: React.KeyboardEvent) => void; componentDidMount(): void; componentWillUnmount(): void; componentDidUpdate(prevProps: AlertProps): void; renderIcon(): import("@emotion/react/jsx-runtime").JSX.Element; renderCloseButton(): import("@emotion/react/jsx-runtime").JSX.Element | null; renderAlert(): import("@emotion/react/jsx-runtime").JSX.Element; createScreenReaderPortal(liveRegion: Element): import("react").ReactPortal | null; render(): import("@emotion/react/jsx-runtime").JSX.Element | null; } export default Alert; export { Alert }; //# sourceMappingURL=index.d.ts.map