import type { InitializeResult } from "../state/protocol/common/commands.js"; import { type Message } from "../state/sessionState.js"; import type { ArtifactAutomationEnabledRules, ArtifactAutomationNotice, ArtifactAutomationNoticeChange } from "../../../artifactIntegrations/common/artifactRuntime.js"; import { ArtifactRequestPresentation, ArtifactRunInitiator } from "../../../artifactIntegrations/common/artifactIntegration.js"; export declare const AgentHostArtifactIntegrationsCapabilityMetaKey = "vscode.artifactIntegrations"; export declare const AgentHostArtifactNoticesCapabilityMetaKey = "vscode.artifactIntegrationNotices"; export declare const AgentHostArtifactRunMetaKey = "vscode.artifactIntegrationRun"; export declare const AgentHostArtifactRunInitiatorMetaKey = "vscode.artifactIntegrationRunInitiator"; export declare const AgentHostArtifactNoticeMetaKey = "vscode.artifactIntegrationNotice"; export declare const AgentHostArtifactRequestMetaKey = "vscode.artifactIntegrationRequest"; export declare function getAgentHostArtifactIntegrationsCapability(result: InitializeResult | undefined): "pending" | "supported" | "unsupported"; export declare function supportsArtifactIntegrationNotices(result: InitializeResult | undefined): boolean; export declare function readArtifactIntegrationRun(message: Message): string | undefined; /** Who started the artifact run that sent `message`, when its coordinator recorded it. */ export declare function readArtifactIntegrationRunInitiator(message: Message): ArtifactRunInitiator | undefined; export declare function readArtifactIntegrationRequest(message: Message): ArtifactRequestPresentation | undefined; export declare function readArtifactIntegrationNotice(source: { readonly _meta?: Record; }): Pick | undefined; /** The rule changes of a notice, which let the host merge later changes of the same artifact into it. */ export interface IArtifactIntegrationNoticeChanges { readonly artifactId: string; readonly artifactLabel: string; readonly changes: readonly ArtifactAutomationNoticeChange[]; readonly enabledRules: readonly ArtifactAutomationEnabledRules[]; } export declare function toArtifactIntegrationNoticeMeta(notice: Pick, changes: IArtifactIntegrationNoticeChanges | undefined): Record; export declare function readArtifactIntegrationNoticeChanges(source: { readonly _meta?: Record; }): IArtifactIntegrationNoticeChanges | undefined;