import type { BlockDecision, GitProbe } from './types.mts'; export type ResolvedStackPolicy = { baseBranch: string; remote: string; guidance: string; draftFollowUp: string; git: GitProbe; }; /** Appends the caller's guidance to a reason. */ export declare function withGuidance(reason: string, guidance: string): string; /** * Effective base `gh pr create` uses when `--base`/`-B` is omitted: * `branch..gh-merge-base`, else undefined (repo default). */ export declare function configuredPullRequestBase(cwd: string, git: GitProbe): string | undefined; /** * Root guard for `gh stack init`: a stack rooted off the base branch cannot drain if its parent is * ever abandoned. Scoped to `init` only, since `gh stack add` only appends to an existing stack. An * explicit `--base` needs no checkout; the HEAD ancestry and local-base freshness checks read * `cwd`, so an unknown `cwd` skips just those. gh-stack roots the first layer at the local base * branch, never the remote one, so a stale local base misroots the stack even when HEAD passed the * ancestry check. A missing local base is fine: gh-stack creates it from the remote. */ export declare function findStackInitBaseBlock(optionTokens: string[], cwd: string | undefined, policy: ResolvedStackPolicy): BlockDecision | null; export declare function findHandRolledStackBaseBlock(action: string, optionTokens: string[], cwd: string | undefined, policy: ResolvedStackPolicy): BlockDecision | null;