/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { TypedEventEmitter } from "@fluid-internal/client-utils"; import type { ITelemetryBaseLogger } from "@fluidframework/core-interfaces"; import type { IClient } from "@fluidframework/driver-definitions"; import type { IDocumentDeltaConnection, IDocumentDeltaStorageService, IDocumentService, IDocumentServiceEvents, IDocumentServicePolicies, IDocumentStorageService, IResolvedUrl } from "@fluidframework/driver-definitions/internal"; import type { ITokenProvider } from "@fluidframework/routerlicious-driver"; import type { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server"; import { LocalDocumentDeltaConnection } from "./localDocumentDeltaConnection.js"; /** * Basic implementation of a document service for local use. * @internal */ export declare class LocalDocumentService extends TypedEventEmitter implements IDocumentService { readonly resolvedUrl: IResolvedUrl; private readonly localDeltaConnectionServer; private readonly tokenProvider; private readonly tenantId; private readonly documentId; private readonly documentDeltaConnectionsMap; readonly policies: IDocumentServicePolicies; private readonly innerDocumentService?; private readonly logger?; /** * @param localDeltaConnectionServer - delta connection server for ops * @param tokenProvider - token provider * @param tenantId - ID of tenant * @param documentId - ID of document */ constructor(resolvedUrl: IResolvedUrl, localDeltaConnectionServer: ILocalDeltaConnectionServer, tokenProvider: ITokenProvider, tenantId: string, documentId: string, documentDeltaConnectionsMap: Map, policies?: IDocumentServicePolicies, innerDocumentService?: IDocumentService | undefined, logger?: ITelemetryBaseLogger | undefined); dispose(): void; /** * Creates and returns a document storage service for local use. */ connectToStorage(): Promise; /** * Creates and returns a delta storage service for local use. */ connectToDeltaStorage(): Promise; /** * Creates and returns a delta stream for local use. * @param client - client data */ connectToDeltaStream(client: IClient): Promise; } /** * Creates and returns a document service for local use. * @param localDeltaConnectionServer - delta connection server for ops * @param tokenProvider - token provider with a single token * @param tenantId - ID of tenant * @param documentId - ID of document * @internal */ export declare function createLocalDocumentService(resolvedUrl: IResolvedUrl, localDeltaConnectionServer: ILocalDeltaConnectionServer, tokenProvider: ITokenProvider, tenantId: string, documentId: string, documentDeltaConnectionsMap: Map, policies?: IDocumentServicePolicies, innerDocumentService?: IDocumentService, logger?: ITelemetryBaseLogger): IDocumentService; //# sourceMappingURL=localDocumentService.d.ts.map