import { IDisposable } from "../../../../base/common/lifecycle.js"; import { ISession, IChat } from "../../../services/sessions/common/session.js"; import { ISessionTaskRunner } from "@codingame/monaco-vscode-workbench-service-override/vscode/vs/sessions/contrib/chat/browser/sessionTaskRunner"; /** * Registry of {@link ISessionTaskRunner} implementations. Consumed by * {@link ISessionsTasksService.runTask} to dispatch task execution to the * runtime that owns a session. */ export interface ISessionTaskRunnerRegistry { readonly _serviceBrand: undefined; /** * Registers a runner with the registry. The returned disposable removes * the runner. If multiple runners claim the same session, the one with * the higher {@link ISessionTaskRunner.priority} wins; ties are broken * in registration order (later registrations win). */ register(runner: ISessionTaskRunner): IDisposable; /** * Returns the highest-priority runner that claims the given session, or * `undefined` if no registered runner can run tasks for it. */ getRunner(session: ISession, chat?: IChat): ISessionTaskRunner | undefined; } export declare const ISessionTaskRunnerRegistry: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier;