/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ /** * Helper class for lazy initialized values. Ensures the value is only generated once, and remain immutable. * * @deprecated Moved to the `@fluidframework/core-utils` package. * @internal */ export declare class Lazy { private readonly valueGenerator; private _value; private _evaluated; /** * Instantiates an instance of Lazy. * @param valueGenerator - The function that will generate the value when value is accessed the first time. */ constructor(valueGenerator: () => T); /** * Return true if the value as been generated, otherwise false. */ get evaluated(): boolean; /** * Get the value. If this is the first call the value will be generated. */ get value(): T; } //# sourceMappingURL=lazy.d.ts.map