/** * TyScrollContainer Web Component * * A scroll container with shadow indicators and an optional custom-rendered scrollbar. * Uses the CustomScrollbar utility internally. * * @example Custom scrollbar * ```html * *
Long content...
*
* ``` */ export declare class TyScrollContainer extends HTMLElement { private _scrollWrapper; private _shadowTop; private _shadowBottom; private _shadowLeft; private _shadowRight; private _scrollbar; private _resizeObserver; private _contentObserver; private _rafId; private _nearStartFired; private _nearEndFired; static get observedAttributes(): string[]; get shadow(): boolean; set shadow(value: boolean); get maxHeight(): string | null; set maxHeight(value: string | null); get hideScrollbar(): boolean; set hideScrollbar(value: boolean); get customScrollbar(): boolean; set customScrollbar(value: boolean); get overflowX(): boolean; set overflowX(value: boolean); /** Distance (px) from an edge at which nearstart/nearend fire. Default 100. */ get nearEdgeThreshold(): number; set nearEdgeThreshold(value: number | null); /** Preserve visual position when content is added above the viewport * (e.g. prepending older messages in a chat). Opt-in. */ get scrollAnchoring(): boolean; set scrollAnchoring(value: boolean); constructor(); connectedCallback(): void; disconnectedCallback(): void; attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void; private _setupAnchoring; private _teardownAnchoring; private _setupScrollbar; private _destroyScrollbar; private _updateMaxHeight; private _onScroll; private _onSlotChange; private _updateShadowState; /** Edge-trigger one near-edge event; returns the new "fired" state. */ private _maybeEmitEdge; updateShadows(): void; scrollToTop(smooth?: boolean): void; scrollToBottom(smooth?: boolean): void; scrollToLeft(smooth?: boolean): void; scrollToRight(smooth?: boolean): void; /** Scroll a slotted descendant (element or CSS selector) into view. */ scrollToElement(target: Element | string, smooth?: boolean): void; get scrollElement(): HTMLElement | null; } //# sourceMappingURL=scroll-container.d.ts.map