/** * Workspace trust for project-declared hook commands. * * `.valora/config.json`'s `hooks` field lets a PROJECT declare shell commands * that run automatically on every tool call (PreToolUse/PostToolUse) with no * confirmation and the full inherited environment — the same "unconfirmed * shell exec from untrusted declared content" class as a plugin manifest's * `checkCommand`/`installCommand`, except reachable just by cloning a repo * and running any `valora` command inside it, no install step required. * `hook-execution.service.ts` only honours project-declared hooks once the * project directory has been explicitly trusted via `trustWorkspace()` * (wired to `valora config trust`), mirroring editors' workspace-trust * model. Global (`~/.valora/config.json`) and bundled/plugin hooks are * unaffected — those are already fully under the user's own control. */ /** Is `projectDir` (a resolved or resolvable path) explicitly trusted to run project-declared hook commands? */ export declare function isWorkspaceTrusted(projectDir: string, storePath?: string): boolean; /** Explicitly trust `projectDir`'s project-declared hook commands. */ export declare function trustWorkspace(projectDir: string, storePath?: string): void; /** Revoke trust previously granted to `projectDir`. */ export declare function revokeWorkspaceTrust(projectDir: string, storePath?: string): void; //# sourceMappingURL=workspace-trust.service.d.ts.map