import * as _angular_core from '@angular/core'; import { TemplateRef } from '@angular/core'; import { HsLanguageService } from 'hslayers-ng/services/language'; import { ToastPosition } from 'hslayers-ng/config'; type ToastType = 'success' | 'danger' | 'warning' | 'info'; interface Toast { autohide?: boolean; type?: ToastType; delay?: number; details?: string[]; header?: string; serviceCalledFrom?: string; textOrTpl?: string; id?: string; } type customToastOptions = { /** * Disable text translation */ disableLocalization?: boolean; /** * Type of toast message (success, danger, warning, info) */ type?: ToastType; /** * Sets custom delay for the toast message */ customDelay?: number; /** * Sets service name from where toast was called */ serviceCalledFrom?: string; /** * Error details */ details?: string[]; /** * Whether the toast should automatically hide after delay */ autohide?: boolean; }; declare class HsToastService { hsLanguageService: HsLanguageService; private hsConfig; private toastsSignal; get toasts(): Toast[]; /** * Callback method to remove Toast DOM element from view * @param toast - Toast pop up */ remove(toast: Toast): void; removeByText(text: string): void; /** * @param textOrTpl - Text or a template message to display * @param options - Toast window options * Pushes new Toasts to array with content and options */ show(textOrTpl: string | TemplateRef, options?: any): void; /** * Creates new toast message with custom text and custom styling * @param header - Header text to display * @param text - Toast body text to display * @param options - Custom options for the toast message (disableLocalization: boolean, toastStyleClasses: string, customDelay: number, serviceCalledFrom: string) */ createToastPopupMessage(header: string, text: string, options?: customToastOptions): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } declare class HsToastComponent { hsToastService: HsToastService; private hsConfig; position: _angular_core.InputSignal; /** * Signal that tracks config changes */ private configChanges; /** * Computes the CSS classes for positioning the toast container * Combines position class with positioning based on anchor point * Recomputes when config is updated through configChanges */ positionClasses: _angular_core.Signal; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } export { HsToastComponent, HsToastService }; export type { Toast, customToastOptions };