import { IReader } from "../../../../base/common/observable.js"; import { URI } from "../../../../base/common/uri.js"; import { ISessionChangeset } from "../../../services/sessions/common/session.js"; import { IsolationMode } from "./changes.js"; export interface ActiveSessionState { readonly isolationMode: IsolationMode; readonly hasGitRepository: boolean; readonly branchName: string | undefined; readonly baseBranchName: string | undefined; readonly upstreamBranchName: string | undefined; readonly isMergeBaseBranchProtected: boolean | undefined; readonly incomingChanges: number | undefined; readonly outgoingChanges: number | undefined; readonly uncommittedChanges: number | undefined; readonly hasBranchChanges: boolean | undefined; readonly hasGitHubRemote: boolean | undefined; readonly hasPullRequest: boolean | undefined; readonly hasOpenPullRequest: boolean | undefined; readonly hasGitOperationInProgress: boolean | undefined; } /** * Resolves the changeset shown when there is no explicit selection: the * changeset marked as default, otherwise the first enabled changeset. */ export declare function findDefaultChangeset(changesets: readonly ISessionChangeset[], reader: IReader): ISessionChangeset | undefined; export interface IChangesViewSectionCollapseState { readonly checks: boolean; } export type ChangesViewSection = keyof IChangesViewSectionCollapseState; export interface IChangesDetailsViewState { readonly focus: readonly string[]; readonly selection: readonly string[]; readonly expanded: Readonly>; readonly scrollTop: number; } export interface IChangesDetailsViewStateTransfer { readonly from: URI; readonly to: URI; }