/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { ContainerSchema, IFluidContainer, CompatibilityMode } from "@fluidframework/fluid-static"; import type { MinimumVersionForCollab } from "@fluidframework/runtime-definitions"; import type { TinyliciousClientProps, TinyliciousContainerServices } from "./interfaces.js"; /** * Provides the ability to have a Fluid object backed by a Tinylicious service. * * @see {@link https://fluidframework.com/docs/testing/tinylicious/} * * @sealed * @public */ export declare class TinyliciousClient { private readonly documentServiceFactory; private readonly urlResolver; private readonly logger; /** * Creates a new client instance using configuration parameters. * @param properties - Optional. Properties for initializing a new TinyliciousClient instance */ constructor(properties?: TinyliciousClientProps); /** * Creates a new detached container instance in Tinylicious server. * @param containerSchema - Container schema for the new container. * @param minVersionForCollab - Minimum framework version required for collaboration, as a * `MinimumVersionForCollab` SemVer string (e.g. `"1.0.0"`, `"2.0.0"`). * @returns New detached container instance along with associated services. */ createContainer(containerSchema: TContainerSchema, minVersionForCollab: MinimumVersionForCollab): Promise<{ container: IFluidContainer; services: TinyliciousContainerServices; }>; /** * Creates a new detached container instance in Tinylicious server. * @param containerSchema - Container schema for the new container. * @param compatibilityMode - Legacy {@link @fluidframework/fluid-static#CompatibilityMode} value. * @returns New detached container instance along with associated services. * @deprecated Pass a `MinimumVersionForCollab` SemVer string (e.g. `"2.0.0"`) instead. The legacy * values `"1"` and `"2"` correspond to `"1.0.0"` and `"2.0.0"` respectively. */ createContainer(containerSchema: TContainerSchema, compatibilityMode: CompatibilityMode): Promise<{ container: IFluidContainer; services: TinyliciousContainerServices; }>; /** * Accesses the existing container given its unique ID in the tinylicious server. * @param id - Unique ID of the container. * @param containerSchema - Container schema used to access data objects in the container. * @param minVersionForCollab - Minimum Fluid Framework version required for collaboration, as a * `MinimumVersionForCollab` SemVer string (e.g. `"1.0.0"`, `"2.0.0"`). * @returns Existing container instance along with associated services. */ getContainer(id: string, containerSchema: TContainerSchema, minVersionForCollab: MinimumVersionForCollab): Promise<{ container: IFluidContainer; services: TinyliciousContainerServices; }>; /** * Accesses the existing container given its unique ID in the tinylicious server. * @param id - Unique ID of the container. * @param containerSchema - Container schema used to access data objects in the container. * @param compatibilityMode - Legacy {@link @fluidframework/fluid-static#CompatibilityMode} value. * @returns Existing container instance along with associated services. * @deprecated Pass a `MinimumVersionForCollab` SemVer string (e.g. `"2.0.0"`) instead. The legacy * values `"1"` and `"2"` correspond to `"1.0.0"` and `"2.0.0"` respectively. */ getContainer(id: string, containerSchema: TContainerSchema, compatibilityMode: CompatibilityMode): Promise<{ container: IFluidContainer; services: TinyliciousContainerServices; }>; private getContainerServices; private getLoaderProps; } //# sourceMappingURL=TinyliciousClient.d.ts.map