/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { EditHistory, EditHistoryController, EditHistoryCreator, EditHistoryEntry, GraphDescriptor } from "@breadboard-ai/types"; export declare class GraphEditHistory implements EditHistory { #private; constructor(controller: EditHistoryController); add(graph: GraphDescriptor, label: string, creator: EditHistoryCreator, timestamp: number): void; revertTo(newIndex: number): EditHistoryEntry; canUndo(): boolean; canRedo(): boolean; undo(): GraphDescriptor | null; redo(): GraphDescriptor | null; jump(newIndex: number): GraphDescriptor | null; entries(): EditHistoryEntry[]; index(): number; current(): GraphDescriptor | null; get pending(): EditHistoryEntry | undefined; } //# sourceMappingURL=history.d.ts.map