/** * useLiveRegion composable * * Manages an ARIA live region for screen reader announcements. * Creates/reuses a single visually-hidden
element * in the DOM, and announces content when messages arrive. * * This matches the React reference implementation's approach to accessibility * announcements for message components. */ interface UseLiveRegionOptions { /** Text to announce to screen readers */ announcement: string; /** Whether the announcement should be made (defaults to true) */ enabled?: boolean; } /** * Composable that announces content to screen readers via an ARIA live region. * * @example * ```typescript * // In a message component: * useLiveRegion({ * announcement: `New message: ${messageText}`, * enabled: !props.ignoreLiveRegion, * }) * ``` */ export declare function useLiveRegion(options: UseLiveRegionOptions): void; export {};