/** * Manages the isolation state for FlameChart / FlameGraph. * * Only the currently isolated span is tracked: isolating another span * replaces the current one instead of stacking on top of it. * @internal */ export type FlameIsolationState = { /** * Id of the currently isolated span, or `undefined` when the full dataset is displayed. */ isolatedId: unknown; /** * Isolate a span, replacing the currently isolated one. */ isolate: (id: unknown) => void; /** * Clear the isolation and return to the initial state of the chart. */ clearIsolation: () => void; /** * Whether the intermediate ancestors of the isolated span are expanded. * Collapses every time a span is isolated. */ showAllAncestors: boolean; toggleShowAllAncestors: () => void; }; /** * @internal */ export declare function useFlameIsolationState(): FlameIsolationState; //# sourceMappingURL=use-isolation-state.d.ts.map