import type { Result } from "../result/result.js";
import type { FileExists } from "./file-exists.js";
import type { FsStage } from "./fs-stage.js";
import type { NotADirectory } from "./not-a-directory.js";
export type CommitResult = Result<CommitFailureReason>;
export type CommitFailureReason = NotADirectory | FileExists;
export declare function commit(path: string, stage: FsStage): Promise<CommitResult>;
