import type { HookPayload, PathTypoRule, ProtectedPaths } from './types.mts'; /** The first typo rule the payload or command references, or undefined. */ export declare function findPathTypo(payload: HookPayload, command: string, rules: readonly PathTypoRule[]): PathTypoRule | undefined; /** * Whether `rawToken` names a protected file or directory. Dot segments collapse * (`dir/./hooks/x` -> `dir/hooks/x`) so redundant path noise cannot hide a literal match. The match * is deliberately not resolved against the command's cwd, so a `cd` plus a relative path is the * indirection this check does not catch. */ export declare function protectedPathMatch(rawToken: string, protectedPaths: ProtectedPaths): boolean; export declare function referencesProtectedPath(payload: HookPayload, command: string, protectedPaths: ProtectedPaths): boolean;