/** * Helpers that add / remove ARE artefacts from project files. * * Used by `cli/init.ts` (ensure*) and `installer/uninstall.ts` (remove*). */ /** * Ensure `*.sum` is listed in `.gitignore`. * * If a `# agents-reverse-engineer` section already exists, appends within it. * Otherwise creates the section. Idempotent — skips if already present. * * @returns true if the file was modified */ export declare function ensureGitignoreEntry(root: string): Promise; /** * Remove the `# agents-reverse-engineer` section and `*.sum` entry from `.gitignore`. * * Removes the section header line, the `*.sum` line beneath it, and any resulting * excess blank lines. Idempotent — returns false if nothing was changed. * * @param dryRun - If true, don't write changes * @returns true if the file was modified */ export declare function removeGitignoreEntry(dryRun: boolean): Promise; /** * Ensure `.vscode/settings.json` has `files.exclude["**\/*.sum"] = true`. * * Creates the file and directory if needed. Handles JSONC (comments, * trailing commas) used by VS Code — edits are applied surgically via * `jsonc-parser` so existing comments and formatting are preserved. * If an existing file cannot be parsed, the file is left untouched. * Idempotent. * * @returns true if the file was modified */ export declare function ensureVscodeExclude(root: string): Promise; /** * Remove `files.exclude["**\/*.sum"]` from `.vscode/settings.json`. * * Uses `jsonc-parser` to surgically remove the key while preserving comments * and formatting. Cleans up the empty `files.exclude` object if no other keys * remain. Idempotent — returns false if nothing was changed. * * @param dryRun - If true, don't write changes * @returns true if the file was modified */ export declare function removeVscodeExclude(dryRun: boolean): Promise; //# sourceMappingURL=project-files.d.ts.map