import type { PreviewWarning, RepoReader, TransferPlan } from "./contract.js"; /** Orders warnings by kind, keeping the order they were added within one kind. */ export declare function sortWarnings(warnings: PreviewWarning[]): PreviewWarning[]; /** * Compares the source commit with the current HEAD (FR-37, FR-38). A repository that * cannot be read, or a commit this tree does not have, is said to be unknown — never * guessed and never left out (FR-36). None of these block (FR-39). */ export declare function repoWarning(plan: TransferPlan, repo: RepoReader, cwd: string): Promise; /** The warnings that come from the plan alone. */ export declare function planWarnings(plan: TransferPlan): PreviewWarning[];