import { BroadcastDataChannel } from "../../../base/browser/broadcast.js"; import { Disposable } from "../../../base/common/lifecycle.js"; import { ILogService } from "../../log/common/log.service.js"; import { ArtifactAuthenticationHandler, ArtifactIntegrationClient, ArtifactIntegrationRequest, ArtifactIntegrationResponse, ArtifactIntegrationUpdate, IArtifactIntegrationTransport } from "../common/artifactIntegrationProtocol.js"; import { ArtifactIntegrationService } from "../common/artifactIntegrationService.js"; import { IArtifactIntegrationStorage } from "../common/artifactRuntime.js"; type LocalMessage = { readonly kind: "hello" | "goodbye"; readonly client: string; } | { readonly kind: "owner"; readonly owner: string; } | { readonly kind: "ready"; readonly client: string; readonly owner: string; readonly generation: string; } | { readonly kind: "request"; readonly client: string; readonly owner: string; readonly generation: string; readonly id: string; readonly request: ArtifactIntegrationRequest; } | { readonly kind: "response"; readonly client: string; readonly owner: string; readonly generation: string; readonly id: string; readonly response?: ArtifactIntegrationResponse; readonly error?: string; } | { readonly kind: "update"; readonly client: string; readonly owner: string; readonly generation: string; readonly update: ArtifactIntegrationUpdate; }; type LocalChannel = Pick, "onDidReceiveData" | "postData" | "dispose">; /** Windows share one Web Lock owner and a machine-local ledger, never a Settings Sync entry. */ export declare class LocalArtifactIntegrationHost extends Disposable implements IArtifactIntegrationTransport { private readonly logService; readonly authenticate?: ArtifactAuthenticationHandler | undefined; private readonly clientId; private readonly channel; private readonly updates; readonly onDidUpdate: import("../../../base/common/event.js").Event; private readonly reset; readonly onDidReset: import("../../../base/common/event.js").Event; private readonly pending; private readonly ready; private readonly released; private readonly abort; private ownerId; private generation; private failure; private localReceiver; readonly client: ArtifactIntegrationClient; constructor(scope: string, createRuntime: (authority: string, storage: IArtifactIntegrationStorage, isOwner: () => boolean) => ArtifactIntegrationService, logService: ILogService, locks?: LockManager | undefined, authenticate?: ArtifactAuthenticationHandler | undefined, createChannel?: (name: string) => LocalChannel); private post; private receive; request(request: ArtifactIntegrationRequest): Promise; dispose(): void; } export {};