/** * PRE-TRUST A PROJECT ROOT FOR CLAUDE CODE (flow-map-chat-overlay.md ยง4.7 * item 5). A hand-off or Open in session session would otherwise start * behind Claude Code's "Do you trust the files in this folder?" dialog, and * its first message waits there. * * Verified against Claude Code 2.1.289: * - Trust is `projects[].hasTrustDialogAccepted: true` in the * global config, the same record the dialog writes when the user accepts. * - The global config is `/.config.json` when that legacy file * exists, else `$CLAUDE_CONFIG_DIR/.claude.json` (home directory when the * variable is unset). `` is `$CLAUDE_CONFIG_DIR` or `~/.claude`. * - A session is trusted when its folder or a parent up to its git root holds * the record, so one entry for the root covers sessions started inside it. * - Claude Code re-reads the file under the lock directory `.lock` * before every save and merges `projects` by key, so an entry written * under the same lock survives a running Claude Code. * * Only this root's record changes; every other key is kept. Nothing is * written when the file is missing (Claude Code restores a missing config * from its backups, and a stub would hide that), unreadable, or not an * object, and never for the home directory, a folder above it or a * filesystem root, whose trust would cover every project beneath them. */ export declare function trustClaudeCodeProject(root: string, options?: { env?: NodeJS.ProcessEnv; home?: string; }): Promise<"trusted" | "already-trusted" | "skipped">; /** The global config file Claude Code 2.1.289 reads (`getGlobalClaudeFile`). */ export declare function claudeCodeConfigPath(env: NodeJS.ProcessEnv, home: string): Promise; /** * The lock Claude Code takes around a config save: the directory * `.lock`, created with mkdir and considered abandoned once its mtime * is older than ten seconds. Returns null rather than write without it. * Release removes the directory only while it is still the one this call * made, so a writer that took over a lock this call held too long keeps it. */ export declare function acquireConfigLock(lock: string): Promise<(() => Promise) | null>; //# sourceMappingURL=claude-code-trust.d.ts.map