/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { TypedEventEmitter } from "@fluid-internal/client-utils"; import type { IClient } from "@fluidframework/driver-definitions"; import type { IDocumentServiceEvents, IDocumentService, IResolvedUrl, IDocumentStorageService, IDocumentDeltaConnection, IDocumentDeltaStorageService } from "@fluidframework/driver-definitions/internal"; import type { FileDeltaStorageService } from "./fileDeltaStorageService.js"; /** * The DocumentService manages the different endpoints for connecting to * underlying storage for file document service. */ export declare class FileDocumentService extends TypedEventEmitter implements IDocumentService { readonly resolvedUrl: IResolvedUrl; private readonly storage; private readonly deltaStorage; private readonly deltaConnection; constructor(resolvedUrl: IResolvedUrl, storage: IDocumentStorageService, deltaStorage: FileDeltaStorageService, deltaConnection: IDocumentDeltaConnection); dispose(): void; connectToStorage(): Promise; connectToDeltaStorage(): Promise; /** * Connects to a delta storage endpoint of provided documentService to get ops and then replaying * them so as to mimic a delta stream endpoint. * * @param client - Client that connects to socket. * @returns returns the delta stream service. */ connectToDeltaStream(client: IClient): Promise; } //# sourceMappingURL=fileDocumentService.d.ts.map