/**
 * CI/CD Branch Detection Utility
 *
 * Detects branch names from CI/CD environment variables across major platforms. Used to
 * handle detached HEAD state in CI environments where git commands fail.
 */
export interface CIBranchInfo {
    /** The detected CI platform name */
    platform: string;
    /** Whether running in a CI environment */
    isCI: boolean;
    /** The branch name extracted from CI environment variables */
    branch: string | undefined;
    /** Whether this is a pull/merge request build */
    isPR: boolean;
    /** Source branch for PRs (the branch being merged from) */
    sourceBranch?: string;
    /** Target branch for PRs (the branch being merged into) */
    targetBranch?: string;
    /** Tag name if this is a tag build */
    tag?: string;
}
/**
 * Detects the current CI environment and extracts branch information. Supports: GitHub
 * Actions, GitLab CI, Jenkins, Bitbucket, CircleCI, Travis CI, Azure Pipelines, TeamCity,
 * Drone CI, Buildkite
 */
export declare function detectCIBranch(): CIBranchInfo;
/**
 * Gets the branch name with CI detection priority. Returns undefined if not in CI or
 * branch cannot be detected.
 */
export declare function getCIBranchName(): string | undefined;
//# sourceMappingURL=ci-branch-detection.d.ts.map