import { IObservable } from "../../base/common/observable.js"; import { ThemeIcon } from "../../base/common/themables.js"; import { AgentMergeConfiguration } from "../../platform/agentHost/common/agentMerge.js"; import { IConfigurationService } from "../../platform/configuration/common/configuration.service.js"; import { IAgentMergeClientState } from "../common/agentHostSessionsProvider.js"; import { ISessionsProvidersService } from "../services/sessions/browser/sessionsProvidersService.service.js"; import { IChat, ISession } from "../services/sessions/common/session.js"; /** Effective Agent Merge state used by client presentation. */ export interface ISessionAgentMergeConfiguration { readonly enabled: boolean; readonly actions: AgentMergeConfiguration; } /** * Returns the Agent Merge state observable of a session's folder. Each folder a * chat works in has its own Agent Merge: pass `chat` for the folder it works * in, or omit it for the session folder (the main chat's), which session-wide * surfaces use alongside the session folder's pull request. */ export declare function getSessionAgentMergeStateObservable(session: ISession, sessionsProvidersService: ISessionsProvidersService, chat?: IChat): IObservable; /** Returns effective Agent Merge actions of a session's folder; see {@link getSessionAgentMergeStateObservable}. */ export declare function getSessionAgentMergeConfigurationObservable(session: ISession, sessionsProvidersService: ISessionsProvidersService, configurationService: IConfigurationService, chat?: IChat): IObservable; /** Hides pull-request blockers that an enabled Agent Merge session owns. */ export declare function getAgentMergeAwarePullRequestIcon(icon: ThemeIcon, agentMerge: ISessionAgentMergeConfiguration | undefined, blockers?: { readonly hasFailingChecks?: boolean; readonly hasMergeConflicts?: boolean; readonly hasUnresolvedComments?: boolean; }): ThemeIcon; /** Whether the pull-request icon represents blockers Agent Merge can own. */ export declare function isAgentMergePullRequestIcon(icon: ThemeIcon): boolean; /** Reads the effective global Agent Merge configuration. */ export declare function getGlobalAgentMergeConfiguration(configurationService: IConfigurationService): AgentMergeConfiguration;