import type { GitignoreIssue } from '../config/types.js'; /** * Options for checking gitignore status */ interface GitignoreCheckOptions { /** Project root directory (default: process.cwd()) */ cwd?: string; /** Name of the env file (default: ".env") */ envFile?: string; /** Custom logger (default: console.log) */ log?: (msg: string) => void; } /** Are we in a git repo? (checks for .git directory in cwd) */ export declare function isGitRepo(cwd?: string): boolean; /** * Returns: * - true → .env-matching patterns are found in .gitignore * - false → .env-matching patterns are NOT found (or a negation exists) * - null → no .gitignore exists * @param options - Options for the gitignore check. * @returns True if the env file is ignored, false if not, or null if no .gitignore exists. */ export declare function isEnvIgnoredByGit(options?: GitignoreCheckOptions): boolean | null; /** Warns the user if the .env file is not properly ignored by git * @param options - Options for the gitignore check. * @returns void */ export declare function warnIfEnvNotIgnored(options?: GitignoreCheckOptions): void; /** * Checks if .env file has gitignore issues. * Returns null if no issue, otherwise returns the reason. * @param options - Options for the gitignore check. * @returns Null if no issue, otherwise the reason for the issue. */ export declare function checkGitignoreStatus(options?: GitignoreCheckOptions): { reason: GitignoreIssue; } | null; /** Find the git repository root starting from startDir (walk up until ".git"). * @param startDir The directory to start searching from * @returns The git root directory path, or null if not found */ export declare function findGitRoot(startDir: string): string | null; export {}; //# sourceMappingURL=git.d.ts.map