export type Source = { kind: "runDir"; dir: string; } | { kind: "statelog"; file: string; }; export type Discovery = { sources: Source[]; /** Where a sole argument goes: one statelog file → the viewer, one run * dir → the viewer on its statelog with each trace's annotations * summarised, anything else → the explorer home table. */ route: "viewer" | "runDirectory" | "explorer"; errors: string[]; }; export declare function discoverSources(paths: string[]): Discovery; export declare function isStatelogEnvelope(line: string): boolean;