/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { IChannel, IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions/internal"; import type { ISnapshotTree } from "@fluidframework/driver-definitions/internal"; import type { ITelemetryContext, IGarbageCollectionData, CreateChildSummarizerNodeFn, IFluidDataStoreContext, ISummarizeResult, IRuntimeMessageCollection, IRuntimeStorageService } from "@fluidframework/runtime-definitions/internal"; import { type IChannelContext } from "./channelContext.js"; import type { ISharedObjectRegistry } from "./dataStoreRuntime.js"; export declare class RemoteChannelContext implements IChannelContext { private readonly id; private isLoaded; /** * Tracks the messages for this channel that are sent while it's not loaded */ private pendingMessagesState; private readonly channelP; private channel; private readonly services; private readonly summarizerNode; private readonly subLogger; private readonly thresholdOpsCounter; private static readonly pendingOpsCountThreshold; constructor(runtime: IFluidDataStoreRuntime, dataStoreContext: IFluidDataStoreContext, storageService: IRuntimeStorageService, submitFn: (content: unknown, localOpMetadata: unknown) => void, dirtyFn: (address: string) => void, id: string, baseSnapshot: ISnapshotTree, registry: ISharedObjectRegistry, extraBlobs: Map | undefined, createSummarizerNode: CreateChildSummarizerNodeFn, attachMessageType?: string); getChannel(): Promise; setConnectionState(connected: boolean, clientId?: string): void; applyStashedOp(content: unknown): unknown; /** * Process messages for this channel context. The messages here are contiguous messages for this context in a batch. * @param messageCollection - The collection of messages to process. */ processMessages(messageCollection: IRuntimeMessageCollection): void; reSubmit(content: unknown, localOpMetadata: unknown, squash: boolean): void; rollback(content: unknown, localOpMetadata: unknown): void; /** * Returns a summary at the current sequence number. * @param fullTree - true to bypass optimizations and force a full summary tree * @param trackState - This tells whether we should track state from this summary. * @param telemetryContext - summary data passed through the layers for telemetry purposes */ summarize(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext): Promise; private summarizeInternal; /** * Returns the data used for garbage collection. This includes a list of GC nodes that represent this context. * Each node has a set of outbound routes to other GC nodes in the document. * If there is no new data in this context since the last summary, previous GC data is used. * If there is new data, the GC data is generated again (by calling getGCDataInternal). * @param fullGC - true to bypass optimizations and force full generation of GC data. */ getGCData(fullGC?: boolean): Promise; /** * Generates the data used for garbage collection. This is called when there is new data since last summary. It * loads the context and calls into the channel to get its GC data. * @param fullGC - true to bypass optimizations and force full generation of GC data. */ private getGCDataInternal; updateUsedRoutes(usedRoutes: string[]): void; } //# sourceMappingURL=remoteChannelContext.d.ts.map