import type { HookValidationError } from "../types.js"; import type { HookConfigSourceScope, ProjectHookResolution } from "../config-paths.js"; import { type ParsedHooksFileEnvelope } from "./yaml-envelope.js"; export type DiscoveredHooksFileSnapshot = { readonly scope: HookConfigSourceScope; readonly filePath: string; readonly content: string; } | { readonly scope: HookConfigSourceScope; readonly filePath: string; readonly readError: string; }; export declare function expandSnapshotImports(snapshot: DiscoveredHooksFileSnapshot, loadedFiles: Set, envelopeCache: Map, projectResolution: ProjectHookResolution | undefined): { snapshots: DiscoveredHooksFileSnapshot[]; errors: HookValidationError[]; watchPaths: string[]; }; export declare function readSnapshotImports(snapshot: DiscoveredHooksFileSnapshot, errors: HookValidationError[], envelopeCache: Map, projectResolution: ProjectHookResolution | undefined, watchPaths: Set): DiscoveredHooksFileSnapshot[]; export declare function getOrParseEnvelope(filePath: string, content: string, envelopeCache: Map): ParsedHooksFileEnvelope; export declare function resolveHookImportTargets(importerPath: string, specifier: string, importerScope: HookConfigSourceScope): { filePaths: string[]; watchPaths: string[]; error?: HookValidationError; }; export declare function expandHookImportPath(resolvedPath: string): string[]; export declare function canonicalizeHookPath(filePath: string): string;