export type BlockedAccess = { readonly kind: "read" | "edit" | "shell" | "access"; readonly tool: string; readonly paths: readonly string[]; }; export declare function normalizePath(input: string): string; export declare function stripAtPrefix(input: string): string; export declare function isProtectedPath(input: string): boolean; export declare function extractPatchPaths(patchText: string): string[]; /** * Best-effort scan for `.env*` / pepper paths named in a shell command. It is a guardrail against * accidental reads (`cat .env`, `source .env`, `echo x >> .env`), not a sandbox: variables, * eval, and generic commands such as `grep -r` without a path can still reach file contents. * Segments that invoke the envsitter CLI are allowed because it never prints values. */ export declare function findProtectedPathsInCommand(command: string): string[]; export declare function findBlockedAccess(tool: string, args: unknown): BlockedAccess | undefined; export declare function blockedAccessMessage(blocked: BlockedAccess): string; export declare function permissionDenial(action: string, resources: readonly string[]): string | undefined; export declare function redactGrepOutput(output: string): { output: string; hidden: number; }; export declare function redactGrepResult(result: Result): Result; //# sourceMappingURL=policy.d.ts.map