import { ScanStatus } from "../types.js"; import type { Signal } from "../types.js"; import type { ScanContext } from "./context.js"; /** Optional pre/post scan behavior customizations for one scanner. */ export interface ScannerHooks { beforeScan?: (ctx: ScanContext) => ScanContext | Promise>; isActionable?: (signal: Signal, ctx: ScanContext) => boolean; } export interface SkipScanOptions { status?: ScanStatus; cause?: unknown; } /** Error used by scanner hooks or scanner code to halt one run with a status. */ export declare class SkipScan extends Error { readonly status: ScanStatus; constructor(message?: string, options?: SkipScanOptions); } //# sourceMappingURL=hooks.d.ts.map