export declare class MainBranchError extends Error { readonly repoPath: string; readonly cause?: unknown | undefined; constructor(message: string, repoPath: string, cause?: unknown | undefined); } export type MainBranchOutcome = { readonly status: 'exists-local'; readonly mainBranch: string; } | { readonly status: 'fetched-from-origin'; readonly mainBranch: string; } | { readonly status: 'created-from-head'; readonly mainBranch: string; readonly from: string; readonly commit: string; readonly pushed: boolean; }; export interface EnsureMainBranchOptions { readonly repoPath: string; readonly mainBranch: string; /** When true (default), push newly-created branches to origin. */ readonly push?: boolean; } export declare function ensureMainBranch(options: EnsureMainBranchOptions): Promise; //# sourceMappingURL=main-branch.d.ts.map