import { CSSResultGroup, PropertyValues, TemplateResult, LitElement } from 'lit'; export type SbbOverlayCloseEventDetails = { returnValue?: any; closeTarget?: HTMLElement; }; declare const SbbOverlayElement_base: import('../core/mixins.js').AbstractConstructor & typeof LitElement; /** * It displays an interactive overlay element. * * @slot - Use the unnamed slot to provide a content for the overlay. * @event {CustomEvent} willOpen - Emits whenever the `sbb-overlay` starts the opening transition. Can be canceled. * @event {CustomEvent} didOpen - Emits whenever the `sbb-overlay` is opened. * @event {CustomEvent} willClose - Emits whenever the `sbb-overlay` begins the closing transition. Can be canceled. * @event {CustomEvent} didClose - Emits whenever the `sbb-overlay` is closed. * @event {CustomEvent} requestBackAction - Emits whenever the back button is clicked. * @cssprop [--sbb-overlay-z-index=var(--sbb-overlay-default-z-index)] - To specify a custom stack order, * the `z-index` can be overridden by defining this CSS variable. The default `z-index` of the * component is set to `var(--sbb-overlay-default-z-index)` with a value of `1000`. */ export declare class SbbOverlayElement extends SbbOverlayElement_base { static styles: CSSResultGroup; static readonly events: { readonly willOpen: "willOpen"; readonly didOpen: "didOpen"; readonly willClose: "willClose"; readonly didClose: "didClose"; readonly backClick: "requestBackAction"; }; /** * Whether to allow the overlay content to stretch to full width. * By default, the content has the appropriate page size. */ expanded: boolean; /** * Whether a back button is displayed next to the title. */ backButton: boolean; /** * This will be forwarded as aria-label to the close button element. */ accessibilityCloseLabel: string | undefined; /** * This will be forwarded as aria-label to the back button element. */ accessibilityBackLabel: string | undefined; /** * This will be forwarded as aria-label adn will describe the purpose of the dialog. */ accessibilityLabel: string | undefined; private set _state(value); private get _state(); private _ariaLiveRef; private _ariaLiveRefToggle; /** Emits whenever the `sbb-overlay` starts the opening transition. */ private _willOpen; /** Emits whenever the `sbb-overlay` is opened. */ private _didOpen; /** Emits whenever the `sbb-overlay` begins the closing transition. */ private _willClose; /** Emits whenever the `sbb-overlay` is closed. */ private _didClose; /** Emits whenever the back button is clicked. */ private _backClick; private _overlayContentElement; private _overlayCloseElement?; private _overlayController; private _openOverlayController; private _focusHandler; private _scrollHandler; private _returnValue; private _lastFocusedElement?; private _language; /** * Opens the overlay element. */ open(): void; /** * Closes the overlay element. */ close(result?: any, target?: HTMLElement): any; private _onKeydownEvent; connectedCallback(): void; disconnectedCallback(): void; protected firstUpdated(changedProperties: PropertyValues): void; private _removeInstanceFromGlobalCollection; private _attachOpenOverlayEvents; private _closeOnSbbOverlayCloseClick; private _onOverlayAnimationEnd; private _setAriaLiveRefContent; private _removeAriaLiveRefContent; private _setOverlayFocus; protected render(): TemplateResult; } declare global { interface HTMLElementTagNameMap { 'sbb-overlay': SbbOverlayElement; } } export {}; //# sourceMappingURL=overlay.d.ts.map