/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { IFluidHandle } from "@fluidframework/core-interfaces"; import type { IChannelStorageService } from "@fluidframework/datastore-definitions/internal"; import type { ISummaryTreeWithStats } from "@fluidframework/runtime-definitions/internal"; import type { IFluidSerializer } from "@fluidframework/shared-object-base/internal"; import { type TelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal"; import type { MergeTree } from "./mergeTree.js"; import { type PropertySet } from "./properties.js"; import { type JsonSegmentSpecs, type MergeTreeChunkV1 } from "./snapshotChunks.js"; export declare class SnapshotV1 { mergeTree: MergeTree; private readonly getLongClientId; filename?: string | undefined; onCompletion?: (() => void) | undefined; static readonly chunkSize: number; private readonly header; private readonly segments; private readonly segmentLengths; private readonly attributionCollections; private readonly logger; private readonly chunkSize; constructor(mergeTree: MergeTree, logger: TelemetryLoggerExt, getLongClientId: (id: number) => string, filename?: string | undefined, onCompletion?: (() => void) | undefined); private getSeqLengthSegs; /** * Emits the snapshot to an ISummarizeResult. If provided the optional IFluidSerializer will be used when * serializing the summary data rather than JSON.stringify. */ emit(serializer: IFluidSerializer, bind: IFluidHandle): ISummaryTreeWithStats; extractSync(): JsonSegmentSpecs[]; static loadChunk(storage: IChannelStorageService, path: string, logger: TelemetryLoggerExt, options: PropertySet | undefined, serializer?: IFluidSerializer): Promise; static processChunk(path: string, chunk: string, logger: TelemetryLoggerExt, options: PropertySet | undefined, serializer?: IFluidSerializer): MergeTreeChunkV1; } //# sourceMappingURL=snapshotV1.d.ts.map