// Type definitions for ui/AnnounceDecorator import * as React from "react"; type Omit = Pick>; type Merge = Omit> & N; export interface AnnounceDecoratorProps { /** * The wrapped component's children. * * An instance of will be appended to `children` . */ children?: React.ReactNode; } export function AnnounceDecorator

( Component: React.ComponentType

| string, ): React.ComponentType

; export interface AnnounceProps { /** * Time, in milliseconds, to wait to remove the alert message. * * Subsequent updates to the message before the timeout are ignored. */ timeout?: number; } /** * An unstyled component with an imperative API to alert the user. * * The `announce()` method should be used to alert the user of behavior for accessibility. * * Example: * ``` import {Announce} from '@enact/ui/AnnounceDecorator'; import {Component} from 'react'; class Example extends Component { notify = () => { if (this.announce) { this.announce.announce('this text will be alerted to user by TTS'); } } setAnnounceRef = (announce) => { this.announce = announce; } render () {

} } ``` */ export class Announce extends React.Component< Merge, AnnounceProps> > {} export default AnnounceDecorator;