import { BridgeCrossingReport } from '../../../domain/types/index.js'; /** * v0.9.0: Definition of a custom hook's internal state management. * Used by BridgeCrossingDetector to detect indirect bridge crossings. */ export interface HookDefinition { /** Whether the hook contains useState calls */ hasUseState: boolean; /** Whether the hook contains useEffect calls */ hasUseEffect: boolean; /** Whether the hook contains setState calls (setXxx) */ hasSetState: boolean; /** Names of setter functions found in the hook */ setterNames: string[]; } export declare class BridgeCrossingDetector { /** * Scan a .tsx/.jsx file for bridge crossings. */ detect(filePath: string): BridgeCrossingReport; /** * v0.9.0: Scan the source for custom hook definitions and analyze * their internal state management to detect indirect bridge crossings. * * A "custom hook" is any function named useXxx that is defined in the file. * We scan its body for useState, useEffect, and setState calls. * * Returns a map of hook name → HookDefinition with flags for each crossing type. */ scanHookDefinitions(source: string): Map; } //# sourceMappingURL=detector.d.ts.map