import { fileMap } from "../types"; export interface RunCommandResponse { exitCode: number; stdout: string; stderr?: string; errorMsg?: string; } export interface RunCommandOptions { resourceDef?: string; scoped?: boolean; allowFail?: boolean; mainCmd?: string; } export declare abstract class Client { namespace: string; configPath: string; debug: boolean; timeout: number; command: string; tmpDir: string; podMonitorAvailable: boolean; localMagicFilepath: string; providerName: string; remoteDir: string | undefined; constructor(configPath: string, namespace: string, tmpDir: string, command: string, providerName: string); abstract createNamespace(): Promise; abstract staticSetup(settings: any): Promise; abstract destroyNamespace(): Promise; abstract getNodeLogs(podName: string, since?: number, withTimestamp?: boolean): Promise; abstract dumpLogs(path: string, podName: string): Promise; abstract upsertCronJob(minutes: number): Promise; abstract startPortForwarding(port: number, identifier: string, namespace?: string, localport?: number): Promise; abstract runCommand(args: string[], opts?: RunCommandOptions): Promise; abstract runScript(identifier: string, scriptPath: string, args: string[]): Promise; abstract spawnFromDef(podDef: any, filesToCopy?: fileMap[], keystore?: string, chainSpecId?: string, dbSnapshot?: string, //delay?: DelayNetworkSettings, longRunning?: boolean): Promise; abstract copyFileFromPod(identifier: string, podFilePath: string, localFilePath: string, container?: string | undefined): Promise; abstract putLocalMagicFile(name: string, container?: string): Promise; abstract createResource(resourseDef: any, scoped: boolean, waitReady: boolean): Promise; abstract createPodMonitor(filename: string, chain: string): Promise; abstract setupCleaner(): Promise; abstract isPodMonitorAvailable(): Promise; abstract getPauseArgs(name: string): string[]; abstract getResumeArgs(name: string): string[]; abstract restartNode(name: string, timeout: number | null): Promise; abstract getNodeInfo(identifier: string, port?: number): Promise<[string, number]>; abstract getNodeIP(identifier: string): Promise; abstract spawnIntrospector(wsUri: string): Promise; abstract validateAccess(): Promise; abstract getLogsCommand(name: string): string; abstract injectChaos(chaosSpecs: any[]): Promise; } export declare function getClient(): Client; export declare function setClient(c: Client): void;