import { type MockHostConfig, type MockRuntimeConfig, type TestStack } from "../web/create-mock-host.js"; /** One chain, in `@parity/host-api-test-sdk`'s shape. */ export interface NetworkConfig { /** e.g. `paseo-asset-hub`; the suffix names the chain's role. */ id: string; name?: string; genesisHash: string; rpcUrl: string; tokenSymbol?: string; tokenDecimals?: number; } /** * Whether the loopback statement store is served, and on whose say-so. * * `"default"` is the store turned on because allocation is granted rather than * because a suite named it. The distinction decides what happens when no * declared proxy can carry the store: a suite that asked for it is told, a * suite that never mentioned it gets no store and builds. */ export type LoopbackStatements = boolean | "default"; /** * Expand `networks` into the settings that have to agree: the proxies that * route each chain, the chains `featureSupported` reports served, and the test * stack the core answers `getChainInfo` from. A role `networks` leaves out * keeps the {@link mockTestStack} chain, because the core needs Asset Hub, * People and Bulletin to start. * * A single proxy carries no genesis hash: an unhashed proxy takes every * request, so routing survives a chain reset while only the DECLARED hash -- * which the product checks against its descriptor bundle -- needs re-pinning. * * Several proxies have to be hashed, because an unhashed one would answer the * other chain's requests too. That is not hypothetical: with a hub and a People * chain both unhashed, the hub took the People reads and allowance registration * failed looking for personhood collections on a chain that has none. */ export declare function fromNetworks(networks: NetworkConfig[], loopbackStatements?: LoopbackStatements): { mock: Pick; runtimeConfig: { testStack: TestStack; }; }; /** The chain options a fixture or server accepts, plus explicit overrides. */ export interface NetworkOptions { networks?: NetworkConfig[]; chain?: NetworkConfig; mock?: MockHostConfig; runtimeConfig?: Partial; } /** * The mock and runtime config `options` stand for: `networks` (or the single * `chain`) expanded, with explicit `mock` and `runtimeConfig` values winning * over anything derived from them. */ export declare function withNetworks(options: NetworkOptions, loopbackStatements?: LoopbackStatements): { mock?: MockHostConfig; runtimeConfig?: Partial; };