/** * Low-level scaffolding primitives: file-existence checks, CLEO block * stripping, .gitignore cleanup, and git-identity helpers. */ /** * Check if a file exists and is readable. * * @param path - Absolute path to the file to check * @returns True if the file exists and is readable, false otherwise */ export declare function fileExists(path: string): Promise; /** * Strip legacy CLEO:START/CLEO:END blocks from a file. * Called before CAAMP injection to prevent competing blocks. * * @param filePath - Absolute path to the file to strip */ export declare function stripCLEOBlocks(filePath: string): Promise; /** * Remove .cleo/ or .cleo entries from the project root .gitignore. * * @param projectRoot - Absolute path to the project root directory * @returns Whether any lines were removed from the .gitignore */ export declare function removeCleoFromRootGitignore(projectRoot: string): Promise<{ removed: boolean; }>; /** * Check whether git has a user identity field set (locally or globally). * * @param cwd - Working directory for the git command * @param field - Config field name, e.g. `"user.email"` or `"user.name"` * @param localEnv - Optional environment to use instead of `process.env` * @returns `true` when the field has a value, `false` when unset or git unavailable * * @task T9088 — extracted guard to avoid clobbering global git identity */ export declare function hasGitIdentity(cwd: string, field: string, localEnv?: NodeJS.ProcessEnv): Promise; //# sourceMappingURL=init.d.ts.map