/** Individual tab panel with custom scrollbar via CustomScrollbar utility. */ export interface TabAttributes { id: string | null; label: string | null; disabled: boolean; lazy: boolean; } /** * `ty-tab-load`: a lazy tab with no content was shown. Fired on the ty-tab * and doesn't bubble, so a lazy tab nested in another doesn't trigger the * outer one's listener. Listen on the tab, or on ty-tabs with capture. */ export interface TabLoadDetail { id: string; index: number; } export declare class TyTab extends HTMLElement { private _scrollbar; private _panelLabel; private _shown; private _load; private _contentObserver; private _contentChanged; static get observedAttributes(): string[]; constructor(); connectedCallback(): void; /** Accessible name. Set by ty-tabs, which also knows rich `label-{id}` slots. */ setPanelLabel(label: string): void; /** Set by ty-tabs: a panel that isn't shown is inert. */ setShown(shown: boolean): void; disconnectedCallback(): void; /** * Called by ty-tabs when this tab becomes the shown one — never for the * tab shown first, whose content the page is expected to carry. A lazy * tab with no content (or whose load failed) asks for it. */ _requestLoad(index: number): void; /** * Report that loading this tab's content failed: shows `slot="error"` * (default "Couldn't load.") with a Retry button. Retry, or showing the * tab again, fires `ty-tab-load` once more. Content arriving clears it. */ loadFailed(): void; attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void; private _render; /** Lazy tabs track whether they have content; others don't watch. */ private _watchContent; private _hasContent; /** * `mutated`: content changed under a connected tab. Content that goes away * (a morph with the server's empty markup) loads again — right away when * this tab is the one shown, otherwise the next time it's shown. */ private _checkContent; private _fireLoad; /** * Placeholder and error, built the first time a tab loads: tabs that never * do carry no hidden "Couldn't load / Retry" text. */ private _ensureStatus; private _setLoad; private _syncPanel; private _setupScrollbar; private _destroyScrollbar; resetScroll(): void; }