import Account from '../account'; import LocalNode from '../node/local'; import { VoteStaple } from '../vote'; import type { Block } from '../block'; import { CertificateBuilder } from './certificate'; import type { Certificate } from './certificate'; export declare const testingNetworkId = 0n; type NodeConfig = ConstructorParameters[0]; export declare function canListenOn(ip: string): Promise; export declare function findListenableIP(checkIPs: string[]): Promise; export declare function findListenableBindingForTest(options?: Pick): Promise<{ ip: string; port: number; }>; export type CreateTestNodeOptions = { name?: string; peerNodes?: LocalNode[]; enableP2P?: boolean; p2p?: Partial; ledger?: Partial; initialTrustedAccount?: Account; createInitialVoteStaple?: boolean; nodeConfig?: Partial>; simulatedPhysicalNetwork?: boolean; }; export interface LocalNodeWithPrivateKey extends LocalNode { config: NodeConfig & Required>; } export declare function createTestNode(account: Account, options?: CreateTestNodeOptions): Promise; export declare function getVotesFromSingleNode(node: LocalNode, fromAccount: Account, toAccount: Account, headBlock: Block | null): Promise; /** * Build a Certificate with defaults for tests. */ export declare function buildTestCertificate(params: NonNullable[0]> & { serial: bigint | number; issuer: Account; subjectPublicKey: Account; }): Promise; /** * Run a command and get its output */ export declare function run(command: string, stdin: Buffer): { output?: string; ok: boolean; }; declare let testMethod: (..._ignore_args: any[]) => any; declare function getJestPuppeteerSetupFile(skipDefaultOutput?: boolean): string; export { testMethod, getJestPuppeteerSetupFile };