/** * Manages the browser-style isolation history for FlameChart / FlameGraph. * * The stack is stored as an ordered list of span ids and a cursor. Isolating * from a non-tail cursor discards the forward entries and starts a new branch * from the current level — mirroring how a browser's history rewrites forward * pages when you follow a new link after going back. * @internal */ export type FlameIsolationState = { /** * Id of the currently isolated span, or `undefined` when the full dataset is displayed. */ isolatedId: unknown; /** * Push a new isolation level. Truncates any forward history first. */ isolate: (id: unknown) => void; /** * Move one level toward the original root. No-op when already at the root. */ goBack: () => void; /** * Re-advance one level along the previously taken path. No-op at the tail. */ goForward: () => void; canGoBack: boolean; canGoForward: boolean; }; /** * @internal */ export declare function useFlameIsolationState(): FlameIsolationState; //# sourceMappingURL=use-isolation-state.d.ts.map