import { StzhToastbarInitialToast, StzhToastType } from "../../index"; /** * @slot - Slot for stzh-toast elements */ export declare class StzhToastbar { /** * Time after toasts are hidden (in seconds). * Toasts with type `error` will stay, until the user closes them manually. */ hideAfter: number; /** * Maximum of toasts allowed to be shown. * If more are created, oldest will be hidden, even if timeout not ended yet or toast type is `error`. */ max: number; /** * Initial toasts. * * Array of objects that at least includes `label` and optionally `type`, `link` (object with `href` and `label`) `cookie` and `cookieExpires`: * `[{"label": "Lorem ipsum", "link": { "label": "More info", "href": "https://example.com" }, "cookie": "cookie-banner", "cookieExpires": 365 }]` * * If `cookie` exists in an object, it will check for that cookie name first (prefixed with `stzh-components-toastbar-closed-`) and only show if cookie doesn't exist. * `cookieExpires` sets the cookie lifetime (default 365 days, set 0 for session cookie). */ initialToasts: StzhToastbarInitialToast[] | string; private _initialToasts; element: HTMLStzhToastbarElement; /** Create new toast. */ toast(label: string, { type, link }?: { type?: StzhToastType; link?: HTMLStzhButtonElement; }): Promise; initialToastsWatcher(newValue: any[] | string): void; private toastAppended; private toastsAppended; private hideOverflowingItems; private handleSlotchange; componentWillLoad(): void; componentDidLoad(): void; render(): any; }