import { URI } from "../../../../base/common/uri.js"; import { ISessionFileChange } from "../../../services/sessions/common/session.js"; import type { IWorktreeSuggestion } from "./worktreeSuggestionService.js"; /** Describes the uncommitted changes that make a worktree worthwhile, e.g. "main has 3 uncommitted files." */ export declare function getUncommittedChangesMessage(suggestion: IWorktreeSuggestion): string; /** The inline hint, split around the number of uncommitted files, which it renders as a link to the changes. */ export interface IInlineHintMessage { /** The text before the number of uncommitted files, e.g. "main has ". */ readonly before: string; /** The number of uncommitted files, e.g. "3 uncommitted files", or empty when a translation leaves it out. */ readonly files: string; /** The text after the number of uncommitted files, e.g. ". Worktrees allow agents to run on a separate copy of the files." */ readonly after: string; } /** * The inline hint, short enough to fit on one line beside its actions, e.g. "main has 3 uncommitted files. * Worktrees allow agents to run on a separate copy of the files." A copy is easier to picture than a worktree. */ export declare function getInlineHintMessage(suggestion: IWorktreeSuggestion): IInlineHintMessage; export declare function getShowChangesLabel(): string; export declare function getUseWorktreeLabel(): string; /** Heads the uncommitted files listed among the options of a picker, e.g. "5 Uncommitted Files". */ export declare function getUncommittedFilesSectionLabel(count: number): string; /** Stands for the uncommitted files a list leaves out, e.g. "2 more". */ export declare function getMoreFilesLabel(count: number): string; export declare function getSendInWorktreeLabel(): string; export declare function getSendLabel(): string; /** The file a change describes. Like the Changes view, a deleted file is identified by its former path. */ export declare function getChangedFileUri(change: ISessionFileChange): URI; export interface IChangedFileLabel { readonly name: string; /** The file's folder relative to the session's folder, or `undefined` at its root. */ readonly directory: string | undefined; /** The file's path relative to the session's folder. */ readonly path: string; } /** * Labels a changed file relative to `folder`. A remote agent host reports changes with its own URI * scheme, so only paths are compared, as the agent host provider does for working directories. */ export declare function getChangedFileLabel(change: ISessionFileChange, folder: URI | undefined): IChangedFileLabel; /** The folder that changed files are labeled relative to: the repository of the suggestion's folder. */ export declare function getChangedFilesRoot(suggestion: IWorktreeSuggestion): URI | undefined; /** The lines a change adds and removes, formatted like the Changes view, e.g. "+4 -1". */ export declare function formatChangeStats(change: ISessionFileChange): { readonly insertions: string; readonly deletions: string; }; /** Describes a changed file's folder and lines added and removed for screen readers, e.g. "src, +3 -3". */ export declare function getChangedFileAriaDescription(change: ISessionFileChange, label: IChangedFileLabel): string; /** Describes the number of uncommitted files shown after Branch, which the isolation picker lists. */ export declare function getUncommittedFilesDescription(suggestion: IWorktreeSuggestion): string; /** * Describes the worktree suggestion for the Agents window accessibility help. The text is the same in * every arm of the experiment, so reading it never exposes someone to a single presentation. */ export declare function getWorktreeSuggestionAccessibilityHelp(): string;