import { UiElement } from '../shared/element.js'; import type { UiPageHeader } from './page-header.js'; /** What the page header's parts share: how far the header has scrolled away, and the grid they line up on. */ export interface PageHeaderState { /** The content has scrolled under the breadcrumb bar. */ fullyCollapsed: boolean; /** The title has scrolled under the breadcrumb bar (its crumb shows). */ titleClipped: boolean; /** The content's page actions have scrolled under the bar (the bar's content actions show). */ contentActionsClipped: boolean; /** There is a ``. */ withContent: boolean; fullWidthGrid: boolean; narrowGrid: boolean; } export declare const HEADINGS: Set; export declare const headingTag: (level: string, fallback: string) => import("lit-html/static.js").StaticValue; /** The scrolling box `el` sits in: an ancestor that scrolls, else the document. */ export declare function scrollParent(el: Element): Element; /** * Carbon's 2x grid as the page header uses it: one full-width column, 1584px at most and centred, with the grid * margin (0 / 16px from md / 24px from max) and half a gutter; `narrow` hangs the text on the margin, `full-width` * drops the 1584px cap. */ export declare const rowStyles: import("lit").CSSResult; /** A part of a page header: finds its `` and re-renders when the header's state changes. */ export declare class PageHeaderPart extends UiElement { protected header: UiPageHeader | null; connectedCallback(): void; disconnectedCallback(): void; private readonly onState; protected get state(): PageHeaderState; protected get rowClasses(): { row: boolean; narrow: boolean; 'full-width': boolean; }; }