import type { Component } from "../../runtime/component.ts"; export interface ScrollAreaOptions { readonly content: Component; readonly showScrollbar?: boolean; readonly scrollbarColor?: (text: string) => string; } /** * A scrollable viewport that clips content and renders a vertical scrollbar. * * The content component is rendered at full width (minus scrollbar), then * clipped to the viewport height. A proportional scrollbar thumb indicates * scroll position. */ export declare class ScrollArea implements Component { private readonly options; private scrollPosition; constructor(options: ScrollAreaOptions); render(width: number, height?: number): string[]; /** Scroll up by N lines (default 1). */ scrollUp(lines?: number): void; /** Scroll down by N lines (default 1). */ scrollDown(lines?: number): void; /** Scroll to an absolute line position. */ scrollTo(position: number): void; /** Scroll to the top. */ scrollToTop(): void; /** Scroll to the bottom. */ scrollToBottom(viewportHeight: number): void; private fitLine; private buildScrollbar; } //# sourceMappingURL=scroll-area.d.ts.map