/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { IContainerContext, IRuntime, IRuntimeFactory } from "@fluidframework/container-definitions/internal"; import type { IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal"; /** * @legacy @beta */ export declare abstract class RuntimeFactoryHelper implements IRuntimeFactory { get IRuntimeFactory(): this; instantiateRuntime(context: IContainerContext, existing: boolean): Promise; /** * Called at the start of initializing a container, to create the container runtime instance. * @param context - The context for the container being initialized * @param existing - Whether the container already exists and is being loaded (else it's being created new just now) */ abstract preInitialize(context: IContainerContext, existing: boolean): Promise; /** * Called the one time the container is created, and not on any subsequent load. * i.e. only when it's initialized on the client that first created it * @param runtime - The runtime for the container being initialized */ instantiateFirstTime(_runtime: T): Promise; /** * Called every time the container runtime is loaded for an existing container. * i.e. every time it's initialized _except_ for when it is first created * @param runtime - The runtime for the container being initialized */ instantiateFromExisting(_runtime: T): Promise; /** * Called at the end of initializing a container, after the runtime has been created or loaded. * @param runtime - The runtime for the container being initialized */ hasInitialized(_runtime: T): Promise; } //# sourceMappingURL=runtimeFactoryHelper.d.ts.map