import type { LinkView, StatPath } from '../../../../ops/types.ts'; import { type Repo } from './repo.ts'; import { type TreeEntry } from './tree.ts'; import type { Dispatch, IndexEntry, IndexState, StatusEntry, WorkTree } from './types.ts'; /** * Every path HEAD's tree holds, with its mode and blob id. * * Null rather than an empty map when HEAD resolves to nothing: a repository * before its first commit is a different thing from one whose commit is empty, * and git says so ("No commits yet"). * * Resolved through the revision parser so a HEAD detached onto a tag peels to * the commit it names, rather than being read as a tree it does not have. */ export declare function headEntries(repo: Repo): Promise | null>; /** Compare the index with the working tree: what is not staged yet. */ export declare function workChanges(repo: Repo, dispatch: Dispatch, worktree: string, entries: ReadonlyMap, found: WorkTree): Promise>; /** Everything `status` reports, in one pass over the three sources. */ export declare function collect(repo: Repo, dispatch: Dispatch, statPath: StatPath, mode: string, links?: LinkView | null): Promise<[StatusEntry[], IndexState, boolean]>; //# sourceMappingURL=changes.d.ts.map