import { DataRadar } from "."; import { WrappedData } from "./WrappedData"; import { SelectionDirection, SelectionMode } from "./types"; export type Props = { challengers: (endPointT | containerT)[]; radar: DataRadar; selectionMode?: SelectionMode; }; /** * Private class. You must not use it directly but always use a Navigator instead. */ export declare class Stage { #private; wrappedDatas: WrappedData[]; selectionMode: SelectionMode; readonly radar: DataRadar; constructor(props: Props); selectByIndex(index: number): WrappedData; selectFirst(): WrappedData; selectLast(): WrappedData; selectWrappedData(wrapped: WrappedData): void; selectData(data: endPointT | containerT): void; hasData(data: endPointT | containerT): boolean; get selectedWrappedData(): WrappedData | null; get selectedData(): endPointT | containerT | null; get currentSelectionIndex(): number | null; /** * Return false if the translation can't be completely done. Notice that in that case a translation to the last item will be made. * * Return the number of movements that haven't been made (for case where the end is reached). */ moveForward(amplitude?: number): number; moveBackward(amplitude?: number): number; /** * You generally want Stage to always have something selected. * That will be accomplished if the SelectionMode provided is "EXTREMITY". * It will select the first item of the Stage if the Stage doesn't have any selection. * However the the parameter 'direction' you can define that the default is the last element instead of the first one. * This is the expected pattern when the Explorer execute some backward moves. */ stabilize(direction: SelectionDirection): void; }