/** * Git utilities for branch detection */ /** * Get the current git branch name * Returns null if not in a git repo or on detached HEAD */ export declare function getCurrentGitBranch(): string | null; /** * Check if we're on the main/master branch */ export declare function isMainBranch(): boolean; /** * Check if we're in a git repository */ export declare function isGitRepo(): boolean; /** * Get the root directory of the git repository * Returns null if not in a git repo */ export declare function getGitRoot(): string | null; /** * Sanitize a git branch name for use as a Tinybird branch name * Tinybird only accepts alphanumeric characters and underscores * All other characters are replaced with underscores */ export declare function sanitizeBranchName(branchName: string): string; /** * Get the current git branch name sanitized for Tinybird * Returns null if not in a git repo, on detached HEAD, or if the * sanitized name would be empty (e.g., branch name "----") */ export declare function getTinybirdBranchName(): string | null; //# sourceMappingURL=git.d.ts.map