/** * Tabs Component — carousel-based tabs with sliding transitions, an animated * active marker, and fixed container dimensions. Expects `ty-tab` children; * rich labels come from `slot="label-{tab-id}"` children of `ty-tabs` itself. */ /** * Tabs container attributes configuration */ export interface TabsAttributes { width: string; height: string; active: string | null; placement: 'top' | 'bottom'; fixed: boolean; } /** * Tab change event detail. Fired whenever the shown tab changes after the * first one is shown — never for the initial tab. */ export interface TabChangeDetail { activeId: string; activeIndex: number; previousId: string | null; previousIndex: number | null; } /** * TyTabs Web Component */ export declare class TyTabs extends HTMLElement { static get observedAttributes(): string[]; constructor(); private _childObserver; private _updateQueued; private _structureDirty; /** ID of the tab currently shown (`active` may be stale or missing after a morph). */ get activeTab(): string | null; connectedCallback(): void; disconnectedCallback(): void; /** * External changes (`active` set by app or server, children added or * removed, a ty-tab's id/label/disabled changed — ty-tab reports those) * settle in one microtask: a morph sets attributes and swaps children in * one go, and the shown tab must be decided once the whole batch has * landed — `active` may name a tab that is appended after it. */ _queueUpdate(structure: boolean): void; attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void; }