/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { GraphIdentifier, InspectableGraph, InspectableRunEdge, InspectableRunErrorEvent, InspectableRunEvent, MainGraphIdentifier, OutputValues, PathRegistryEntry, SequenceView } from "@breadboard-ai/types"; export declare const SECRET_PATH: number[]; export declare const ERROR_PATH: number[]; export declare const createSimpleEntry: (path: number[], event: InspectableRunEvent) => PathRegistryEntry; declare class Entry implements PathRegistryEntry { #private; path: number[]; id: string; parent: PathRegistryEntry | null; event: InspectableRunEvent | null; sidecars: InspectableRunEvent[]; mainGraphId: MainGraphIdentifier | null; graphId: GraphIdentifier; graphStart: number; graphEnd: number | null; graph: InspectableGraph | null; edges: InspectableRunEdge[]; view: SequenceView | null; constructor(path: number[], parent: PathRegistryEntry | null); empty(): boolean; addSidecar(path: number[], event: InspectableRunEvent): void; /** * We handle error specially, because unlike sidecars, errors result * in stopping the run, and we need to display them at the end of the run. * @param event -- The error event to add. */ addError(event: InspectableRunErrorEvent): void; finalizeSidecar(path: number[], data?: { timestamp: number; outputs?: OutputValues; }): void; find(path: number[]): PathRegistryEntry | null; create(path: number[]): Entry; arrangeSidecars(): (InspectableRunEvent | null)[] | null; get children(): Entry[]; get events(): InspectableRunEvent[]; } export declare class PathRegistry extends Entry { constructor(); find(path: number[]): PathRegistryEntry | null; create(path: number[]): Entry; } export {}; //# sourceMappingURL=path-registry.d.ts.map