import { ContextManager, Context } from '../context'; /** * Manages the display of text alerts. * @zcontext */ export declare class TextAlertContext extends Context { private _container; /** * Creates an instance of TextAlertContext. * @param contextManager - The current ContextManager */ constructor(contextManager: ContextManager); /** * Displays a text alert with specified options. * @zprop * @param txt The text content for the alert. * @param options Optional configuration for the text alert appearance and behavior. * @returns An object that allows for manually closing the text alert */ showTextAlert(txt: string, options?: TextAlertOptions): { close: () => void; }; } /** * Configuration options for displaying a text alert. */ export interface TextAlertOptions { /** * Custom class names to apply to the text alert. */ classNames?: string[]; /** * Duration in milliseconds before the text alert automatically disappears. Defaults to 3000 (3 seconds). */ timeout?: number; /** * Background color of the text alert. */ backgroundColor?: string; /** * Text color of the text alert. */ textColor?: string; /** * Delay in milliseconds before showing the text alert. */ delay?: number; } /** * Triggers the display of a text alert. * @param mgr The ContextManager instance to access the TextAlertContext. * @param txt The text content for the alert. * @param options Optional configuration for the text alert appearance and behavior. */ export declare function showTextAlert(mgr: ContextManager, txt: string, options?: TextAlertOptions): { close: () => void; };