import { Store } from './store.js'; /** * The hovered job's lineage on one graph level: the jobs it leads to or follows from, by hops. Each * node, connector and dot reads only its own part of it, so hovering re-renders those whose highlight * changes and nothing else, however large the graph. */ export declare class Lineage extends Store { /** Hops from the hovered job, or none while no job is. */ private hovered; /** The lineage shown, kept after unhover while its highlight draws back out. */ private shown; private furthest; private timer; private readonly walk; /** Seconds each hop of the highlight takes. */ readonly animT: number; /** How deeply the level nests, which names the classes that dim it. */ readonly depth: number; /** Whether its nodes fade as they dim, rather than dim at once. */ readonly fade: boolean; constructor(walk: (job: string) => Map, { animT, depth, fade }: { animT: number; depth?: number; fade?: boolean; }); get hovering(): boolean; /** Whether a lineage shows, hovered or drawing out. */ get showing(): boolean; hover: (job: string | null) => void; /** Stops a draw-out still to finish, as the level goes. */ dispose(): void; /** A node's highlight: 2 in the hovered lineage, 1 drawing out of it, 0 neither. */ node(job: string): number; /** * A dot's or connector's highlight between `from` and `to` (a dot's both the same job), as one * value React compares: none, or lit or drawing out, its delay, and whether it draws from `to`. */ between(from: string, to: string): string; } /** A highlight `between` describes, read back. */ export declare function highlightOf(value: string): { lit: boolean; out: boolean; delay: number; back: boolean; }; export declare const LineageContext: import("react").Context; /** Part of the enclosing level's lineage, re-rendering only when that part changes. */ export declare function useLineage(read: (lineage: Lineage) => T, none: T): T; /** The enclosing level's lineage, for what hovers it. */ export declare function useLineageStore(): Lineage | null;