import type { LinkView, StatPath } from '../../../../ops/types.ts'; import type { Dispatch, RepoLocation, WorkTree } from './types.ts'; export declare const UNTRACKED_NO = "no"; export declare const UNTRACKED_NORMAL = "normal"; export declare const UNTRACKED_ALL = "all"; /** * Walk a working tree once, for both halves of a status report. * * One walk answers two questions, which is why they are not asked separately: * which tracked files still exist and how big they are, and which untracked ones * git would mention. Statting each index path instead would miss every untracked * file, and listing untracked files alone would leave the deletions unfound. * * @param dispatch workspace op dispatcher * @param statPath dispatcher-backed stat, both channels * @param location the discovered repository * @param tracked repository-relative paths the index holds * @param mode which untracked files to report * @param links the name plane's link facts, so the walk lstats as git does; * null outside a workspace, where there is no namespace to hold a link */ export declare function scan(dispatch: Dispatch, statPath: StatPath, location: RepoLocation, tracked: ReadonlySet, mode: string, links?: LinkView | null): Promise; //# sourceMappingURL=worktree.d.ts.map