import { type GitStatus, type GitLog, type GitDiff, type GitBranch, type BlameLine, type GitRemote, type GitStash } from "./gitCore.js"; /** * Split RECORD_SEP-delimited output into one object per record, keyed by the * given field names (in order). Drops git's inter-record newline and blank * records. Missing trailing fields become "". Returning named objects means * callers read `record.sha` instead of guessing what `parts[0]` is. */ export declare function splitRecords(stdout: string, fieldNames: readonly string[]): Record[]; /** Non-blank lines of newline-delimited output. */ export declare function nonEmptyLines(stdout: string): string[]; export declare function parseLog(stdout: string): GitLog; export declare function parseBranchList(stdout: string): GitBranch[]; export declare function parseRemoteList(stdout: string): GitRemote[]; export declare function parseStashList(stdout: string): GitStash[]; export declare function parseBlame(stdout: string): BlameLine[]; export declare function parseStatus(stdout: string): GitStatus; export declare function parseDiff(patch: string): GitDiff;