/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Crypto } from "./Crypto.js"; /** * WARNING: ONLY FOR USE IN PROTECTED TESTING ENVIRONMENTS WHERE SECURITY IS NOT A CONCERN * * A {@link Crypto} with sources of entropy replaced to produce stable values based on an input index. * * This is useful in testing environments where Matter logic is difficult to test with true entropy. * * Depending on implementation some methods may need further mocking to remove entropy entirely. Mocking is sufficient * for current testing purposes. */ export interface MockCrypto extends Crypto { /** * The index of the random space. May be modified to adjust computations going forward. */ index: number; /** * Control whether the implementation supplies normal randomness (false by default). */ entropic: boolean; } export declare function MockCrypto(index?: number, implementation?: new () => Crypto): MockCrypto; //# sourceMappingURL=MockCrypto.d.ts.map