import { Disposable, IDisposable } from "../../../../../../base/common/lifecycle.js"; import { URI } from "../../../../../../base/common/uri.js"; import { IAgentConnection } from "../../../../../../platform/agentHost/common/agentService.js"; import { IAgentSubscription } from "../../../../../../platform/agentHost/common/state/agentSubscription.js"; import { SessionState } from "../../../../../../platform/agentHost/common/state/protocol/state.js"; import { IAgentHostSessionResolution } from "../../../../../../platform/agentHost/common/agentHostConnectionsService.js"; import { ResolveSessionConfigResult } from "../../../../../../platform/agentHost/common/state/protocol/commands.js"; /** Shares initial config reads until the chat, owning connection, backend or working directory changes. */ export declare class AgentHostInitialSessionConfig extends Disposable { private readonly _onError; private _generation; private _value; private _request; constructor(_onError: (error: unknown) => void); get value(): ResolveSessionConfigResult | undefined; isPending(sessionResource: URI, resolution: IAgentHostSessionResolution): boolean; isCurrent(sessionResource: URI, resolution: IAgentHostSessionResolution): boolean; clear(): void; resolve(sessionResource: URI, provider: string, resolution: IAgentHostSessionResolution, workingDirectory: URI | undefined): Promise; private _read; } /** Retries an early subscription failure once the host announces that the session exists. */ export declare function retrySessionConfigSubscriptionOnCreation(connection: IAgentConnection, session: URI, subscription: IAgentSubscription, retry: () => void): IDisposable;