import { EventEmitter } from '../../stencil-public-runtime'; import { MdsHeaderEventDetail, MdsHeaderVisibilityEventDetail } from './meta/event-detail'; import { HeaderBarMenuType, HeaderBarNavType } from "../../type/header-bar"; /** * @part menu - The container element of the modal * @slot - Add `mds-header-bar` element/s. * @slot menu - Put actions and other contents that will be shown as mobile menu. Add `text string`, `HTML elements` or `components` to this slot. * @category structure */ export declare class MdsHeader { host: HTMLMdsHeaderElement; hasMenu: boolean; isOpened: boolean; private relativeTresholdDown; private relativePosition; private relativeThresholdUp; private sanitizedAppearance; private appearanceThreshold; private headerBar; /** * Sets the appearance of the header bar element when loaded, * it can be changed depending on how `appearance-set` attribute is set */ appearance: string; /** * Sets the appearance of the header bar element depending on the scroll position: three values, * the initial appearance, the appearance once scrolled and the `window.scrollY` threshold. * `stripe, inline 200` starts with the stripe appearance and changes to inline once the page is * scrolled more than 199 pixels * @example 'stripe, inline 200' */ readonly appearanceSet?: string; /** * When the page is scrolled down, the component mds-header-bar is hidden starting * from the `autoHide` attribute's value, then if the page is scrolled up it is shown again */ readonly autoHide?: number; /** * Hides the backdrop shown when the mds-header-bar attribute appearace is set to `inline` */ readonly hideBackdrop?: boolean; /** * Sets the visibility type of the hamburger menu of mds-header-bar */ readonly menu: HeaderBarMenuType; /** * Sets the visibility type of the navigation menu of mds-header-bar */ readonly nav: HeaderBarNavType; /** * Sets the threshold margin to trigger hide or show status of the `mds-header-bar` when the page is scrolled */ readonly threshold: number; /** * Sets the visibility type of the navigation menu of mds-header-bar */ visibility?: 'hidden' | 'visible'; /** * Emits when the component is closed */ closedEvent: EventEmitter; /** * Emits when the component mds-header-bar is shown or hidden */ visibleEvent: EventEmitter; /** * Opens or closes the header. * @param isOpened whether the header should be opened */ setOpened(isOpened?: boolean): Promise; private mobileMenu; private close; private getAutoHide; private handleVisibility; private sanitizeAppearance; private handleAppearance; private handleScroll; private setAppearanceSetData; private initScrollListener; disconnectedCallback(): void; componentWillLoad(): void; private barMenu; private defineHeaderBar; componentDidLoad(): void; onMenuChangedHandler(newValue: HeaderBarMenuType, oldValue?: HeaderBarMenuType): void; onNavChangedHandler(newValue: HeaderBarNavType, oldValue?: HeaderBarMenuType): void; onAppearanceSetChangedHandler(): void; handleVisibilityChange(newValue: 'hidden' | 'visible', oldValue: 'hidden' | 'visible'): void; render(): any; }