/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { IRuntimeFactory } from "@fluidframework/container-definitions/internal"; import { IContainerRuntimeOptions } from "@fluidframework/container-runtime/internal"; import { IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal"; import { FluidObject } from "@fluidframework/core-interfaces"; import { RuntimeRequestHandler } from "@fluidframework/request-handler/internal"; import type { IFluidDataStoreFactory, NamedFluidDataStoreRegistryEntries } from "@fluidframework/runtime-definitions/internal"; import type { defaultTestOldestSupportedClient } from "./testCompatibility.js"; /** * {@link ContainerRuntimeFactoryWithDefaultDataStoreConstructor} input properties. * * @internal */ export interface ContainerRuntimeFactoryWithDefaultDataStoreProps { readonly defaultFactory: IFluidDataStoreFactory; /** * Compatibility setting used by all constructor shapes supported by this helper. * * @remarks * Object-shaped constructors receive this setting explicitly. Positional constructors predate * the setting and continue to use the historical package's own implicit default. */ readonly oldestSupportedClient: typeof defaultTestOldestSupportedClient; /** * The data store registry for containers produced. */ readonly registryEntries: NamedFluidDataStoreRegistryEntries; /** * @deprecated Do not use. This strictly exists for backwards compatibility. */ readonly dependencyContainer?: never; /** * Request handlers for containers produced. * @deprecated Will be removed once Loader LTS version is "2.0.0-internal.7.0.0". Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */ readonly requestHandlers?: RuntimeRequestHandler[]; /** * The runtime options passed to the IContainerRuntime when instantiating it */ readonly runtimeOptions?: IContainerRuntimeOptions; /** * Function that will initialize the entryPoint of the IContainerRuntime instances * created with this factory */ readonly provideEntryPoint?: (runtime: IContainerRuntime) => Promise; } /** * {@link @fluidframework/container-definitions#IRuntimeFactory} construct signature. * * @internal */ export type ContainerRuntimeFactoryWithDefaultDataStoreConstructor = ((new (props: ContainerRuntimeFactoryWithDefaultDataStoreProps) => IRuntimeFactory) | (new (defaultFactory: IFluidDataStoreFactory, registryEntries: NamedFluidDataStoreRegistryEntries, dependencyContainer?: never, requestHandlers?: RuntimeRequestHandler[], runtimeOptions?: IContainerRuntimeOptions, provideEntryPoint?: (runtime: IContainerRuntime) => Promise) => IRuntimeFactory)) & { readonly length: number; }; /** * Creates a container runtime factory with default data store for backward compatibility. * * @remarks * Exact constructors loaded by compatibility tests use the positional shape through * `2.0.0-internal.5.4.2` and the object shape beginning with `2.0.0-internal.7.0.0`. * JavaScript constructor length counts parameters before the first default-valued parameter, so * these shapes have arity 3 and 1 respectively. Unknown arities are rejected rather than guessed. * * @internal */ export declare const createContainerRuntimeFactoryWithDefaultDataStore: (ctor: ContainerRuntimeFactoryWithDefaultDataStoreConstructor, ctorProps: ContainerRuntimeFactoryWithDefaultDataStoreProps) => IRuntimeFactory; //# sourceMappingURL=testContainerRuntimeFactoryWithDefaultDataStore.d.ts.map