import type { Env } from "./env.js"; import type { BaseInputs, CiEvent } from "./provider.js"; import type { Forge } from "../forge/forge.js"; import type { RepoGit } from "../git/reader.js"; import type { Paint } from "../output/paint.js"; import type { BaseSource, BuildChannel, Warning } from "@tallyrelease/core"; export interface BuildBase { base: string | null; source: BaseSource; /** The `--base` value, or the branch of a local merge base. */ ref?: string; warnings: Warning[]; } export interface BuildBaseInput { git: RepoGit; env: Env; /** Resolved HEAD sha. */ head: string; /** `--base`. */ cliBase?: string | undefined; event?: CiEvent | undefined; baseInputs?: BaseInputs | undefined; /** Present only when a token is available. */ forge?: Forge | undefined; /** Remote of the default branch candidates; defaults to `origin`. */ remote?: string | undefined; /** Selected build channel; `nightly` bases schedule and manual runs on both. */ channel?: BuildChannel | undefined; } /** Resolves the build base from `--base`, the CI event, the forge, then the local default branch. */ export declare const resolveBuildBase: (input: BuildBaseInput) => Promise; /** Short description of where the build base came from. */ export declare const baseLabel: (base: BuildBase) => string; /** `base` line of the `plan` and `explain` text. */ export declare const baseLine: (paint: Paint, base: BuildBase) => string;