import { Result, Transaction } from './models'; /** * We expect fetch to be available since this is typically used in browsers. * * We polyfill it for tests. */ declare global { export const fetch: any; } export declare type SimulateOptions = { metadata: boolean; }; export declare const OPTIONS_DEFAULTS: SimulateOptions; /** * PocketUniverse Simulator. */ export declare class PocketSimulator { /** * URL of the PocketUniverse Server. * * e.g. `https://eth1.pocketuniverse.app/v2` */ readonly SERVER_URL: string; constructor( /** * URL of the PocketUniverse Server. * * e.g. `https://eth1.pocketuniverse.app/v2` */ SERVER_URL: string); /** * Simulate a transaction. * * transaction: Valid transaction to simulate. * options: Options to add. If metadata is requested to be retrieved, this * will add 200-300 ms latency to the request. */ simulate(transaction: Transaction, options?: SimulateOptions): Promise; }