import { Timeline, TimelineConfigInterface } from '@cosmograph/ui'; import { CosmographInclusiveSelectionComponent } from '../_abstract/inclusive'; import { CosmographTimelineConfig } from './config'; /** * `CosmographTimeline` provides a timeline visualization component for the Cosmograph application and methods for interacting with the timeline, such as handling selection updates, and controlling animation. */ export declare class CosmographTimeline extends CosmographInclusiveSelectionComponent { private _dataExtent; private _visualExtent; private _mode; /** * Returns the current selection on the timeline, which can be either a date range or a pixel range. * @returns The current selection as either a [start, end] date tuple or a [start, end] pixel tuple, or undefined if no selection is set. */ getCurrentSelection(): [Date, Date] | [number, number] | undefined; /** * Returns the current selection on the timeline in pixel coordinates. * @returns The current selection as a [start, end] pixel tuple, or undefined if no selection is set. */ getCurrentSelectionInPixels(): [number, number] | undefined; /** * Returns the width of the bars in the timeline visualization. * @returns The width of the bars in pixels. */ getBarWidth(): number | undefined; /** * Sets the selection on the timeline visualization. * @param selection - The new selection, either as a [start, end] date tuple or a [start, end] pixel tuple. If not provided, the selection will be cleared. */ setSelection(selection?: [Date, Date] | [number, number]): void; private _syncTimelineFilterAndSelection; /** * Returns whether the timeline animation is currently running. * @returns `true` if the timeline animation is running, `false` otherwise. */ getIsAnimationRunning(): boolean; /** * Plays the timeline animation. */ playAnimation(): void; /** * Pauses the timeline animation. */ pauseAnimation(): void; /** * Stops the timeline animation. */ stopAnimation(): void; get defaultConfig(): CosmographTimelineConfig; get accessor(): string; protected fetchData(): Promise; protected createUIComponent(targetElement: HTMLElement): Timeline; protected createComponentConfig(config?: CosmographTimelineConfig): TimelineConfigInterface; protected onResetClientSelections(): void; protected updateHighlightedData(data: number[] | undefined): void; protected shouldUpdateComponentData(): Promise; protected onConfigUpdate(): Promise; } export type { CosmographTimelineConfig };