import { LitElement, PropertyValues } from 'lit';
import { ShadowPartsController } from '../../controllers/shadow-parts-controller';
declare global {
    interface HTMLElementTagNameMap {
        "wy-toasts": WyToasts;
        "wy-toast": WyToast;
    }
}
/**
 * Wrapper for displaying and handling toasts as popovers.
 *
 * @slot - Any `wy-toasts` to show.
 *
 * @csspart wy-toasts - Popover layer for toasts.
 *
 * @fires {HideEventType} hide - Fired when the popover layer is hidden.
 */
export declare class WyToasts extends LitElement {
    static styles: import('lit').CSSResult[];
    protected exportParts: ShadowPartsController;
    /**
     * Whether the popover layer is shown.
     */
    show: boolean;
    private viewportRef;
    /**
     * Close the popover layer.
     */
    close(): void;
    /**
     * Handler when popover is toggled.
     * @internal
     */
    handleClose(e: ToggleEvent): void;
    render(): import('../../../node_modules/lit-html/node/lit-html.js').TemplateResult<1>;
    willUpdate(changedProperties: PropertyValues<this>): void;
    protected firstUpdated(_changedProperties: PropertyValues<this>): void;
    disconnectedCallback(): void;
}
/**
 * Toast for displaying information, messages and alerts. May be handled by `wy-toasts` for popover capability.
 *
 * @slot - Content for the toast.
 *
 * @csspart wy-toast - The wrapper for the toast.
 * @csspart wy-fade - State for using fade effects.
 * @csspart wy-show - State when the toast is shown.
 *
 * @fires {ClosedEventType} closed - When the toast has closed.
 */
export declare class WyToast extends LitElement {
    static styles: import('lit').CSSResult[];
    protected exportParts: ShadowPartsController;
    private toastRef;
    static defaultDuration: number;
    /**
     * Whether the toast is considered visible.
     * @internal
     */
    show: boolean;
    /**
     * Duration for the toast to show.
     * Defaults to 5000ms.
     */
    duration: number;
    private timeout?;
    /**
     * Hide the toast.
     */
    hide(): void;
    /**
     * Hide and close the toast.
     *
     * @param silent - Indicates that the toast should close silently.
     * @fires {ClosedEventType} closed - When the toast has been hidden and closed.
     */
    close(silent?: boolean): Promise<void>;
    willUpdate(changedProperties: PropertyValues<this>): void;
    render(): import('../../../node_modules/lit-html/node/lit-html.js').TemplateResult<1>;
    protected firstUpdated(): void;
    disconnectedCallback(): void;
}
//# sourceMappingURL=wy-toast.d.ts.map