import { type Config } from './types'; import { type NearAccount, type NearAccountManager } from './account'; import { JsonRpcProvider } from './jsonrpc'; /** * The main interface to near-workspaces. Create a new worker instance with {@link Worker.init}, then run code on it. */ export declare abstract class Worker { /** * Initialize a new worker. * * In local sandbox mode, this will: * - Create a new local blockchain * - Load the root account for that blockchain, available as `root`: * * In testnet mode, the same functionality is achieved via different means: * creating a new account as the `root`. * Since all actions must occur on one blockchain instead of N. * * @param config a configuration object * @returns an instance of the Worker class */ static init(config?: Partial): Promise; protected config: Config; protected manager: NearAccountManager; constructor(config: Config); get rootAccount(): NearAccount; abstract get provider(): JsonRpcProvider; abstract tearDown(): Promise; } export declare class CustomnetWorker extends Worker { static init(config: Partial): Promise; private readonly clientConfig; get provider(): JsonRpcProvider; tearDown(): Promise; get defaultConfig(): Config; } export declare class TestnetWorker extends Worker { static init(config: Partial): Promise; get provider(): JsonRpcProvider; tearDown(): Promise; static get defaultConfig(): Config; private static get clientConfig(); } export declare class SandboxWorker extends Worker { static init(config: Partial): Promise; static defaultConfig(): Promise; private server; get provider(): JsonRpcProvider; tearDown(): Promise; private static get clientConfig(); private get rpcAddr(); } //# sourceMappingURL=worker.d.ts.map