/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { IDocumentStorageService, ISnapshotTree, IVersion } from "@fluidframework/driver-definitions/internal"; import type { IFileSnapshot } from "@fluidframework/replay-driver/internal"; import { ReadDocumentStorageServiceBase } from "@fluidframework/replay-driver/internal"; /** * @internal */ export declare const FileStorageDocumentName = "FileStorageDocId"; /** * Document storage service for the file driver. * @internal */ export declare class FluidFetchReader extends ReadDocumentStorageServiceBase implements IDocumentStorageService { private readonly path; private readonly versionName?; protected docTree: ISnapshotTree | null; constructor(path: string, versionName?: string | undefined); /** * Read the file and returns the snapshot tree. * @param version - The version contains the path of the file which contains the snapshot tree. */ getSnapshotTree(version?: IVersion): Promise; /** * Gets the path of the snapshot tree to be read. * @param versionId - version ID. * @param count - Number of versions to be returned. */ getVersions(versionId: string | null, count: number): Promise; readBlob(sha: string): Promise; } /** * @internal */ export interface ISnapshotWriterStorage extends IDocumentStorageService { onSnapshotHandler(snapshot: IFileSnapshot): void; reset(): void; } /** * Constructor type for creating {@link @fluidframework/driver-definitions#IDocumentStorageService} instances. * * @internal */ export type ReaderConstructor = new (...args: any[]) => IDocumentStorageService; /** * @internal */ export declare const FileSnapshotWriterClassFactory: (Base: TBase) => TBase & (new (...args: any[]) => ISnapshotWriterStorage); /** * @internal */ export declare const FluidFetchReaderFileSnapshotWriter: typeof FluidFetchReader & (new (...args: any[]) => ISnapshotWriterStorage); //# sourceMappingURL=fileDocumentStorageService.d.ts.map