/** * @pwngh/economy-lab * * Copyright (c) Preston Neal * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ import { type Economy } from '../../src/economy.js'; import type { EconomyEvent, Store } from '../../src/ports.js'; import type { Config } from '../../src/config.js'; /** * A fresh in-memory economy driven only by `seed`: same result on any runtime, no shared state. * A passed `store` must use the same seeded digest and fixed clock, or the hashes diverge. * `config` overrides individual fields of the test default. */ export declare function makeEconomy(seed?: number, store?: Store, config?: Partial): Economy; /** An economy plus its store, for tests that submit publicly then inspect what persisted. */ export declare function economyWithStore(seed?: number, config?: Partial): { economy: Economy; store: Store; }; /** A seeded in-memory Store on its own: a deterministic digest and a frozen clock, no economy. */ export declare function seededStore(seed?: number): Store; /** Drains the outbox and returns the events it held: claim the batch, mark it relayed, project. */ export declare function eventsOf(store: Store): Promise;