/** * Gemini CLI Trusted Folders Utility * * Provides a standalone function to add folder paths to * ~/.gemini/trustedFolders.json so that Gemini CLI does not * show an interactive trust prompt when launched in those directories. * * @module utils/gemini-trusted-folders */ /** * Minimal logger interface for trusted-folder operations. * Compatible with ComponentLogger from LoggerService. */ export interface TrustedFoldersLogger { warn(message: string, meta?: Record): void; info(message: string, meta?: Record): void; } /** * Return the default path to the Gemini trusted folders JSON file. */ export declare function getDefaultTrustedFoldersPath(): string; /** * Add one or more folder paths to the Gemini trusted folders JSON file. * * The function is idempotent — paths that are already present are skipped. * The file and its parent directory are created if they do not exist. * Errors are caught and logged (non-fatal) so callers are never blocked. * * @param paths - Absolute or resolvable folder paths to trust * @param logger - Optional logger for diagnostics; if omitted, failures are silent * @param trustedFoldersPath - Override path for testing; defaults to ~/.gemini/trustedFolders.json * @returns true if any paths were added, false if nothing changed or an error occurred */ export declare function addGeminiTrustedFolders(paths: string[], logger?: TrustedFoldersLogger, trustedFoldersPath?: string): Promise; /** * Build a list of paths that should be trusted for a given project path. * Includes the project path itself and its parent directory. * * @param projectPath - Absolute path to the project * @returns Array of paths to add to trusted folders */ export declare function getProjectTrustPaths(projectPath: string): string[]; //# sourceMappingURL=gemini-trusted-folders.d.ts.map