import { fileMap } from "../../types"; import { Client, RunCommandOptions, RunCommandResponse } from "../client"; export interface ReplaceMapping { [propertyName: string]: string; } export declare function initClient(configPath: string, namespace: string, tmpDir: string): KubeClient; export declare class KubeClient extends Client { namespace: string; chainId?: string; configPath: string; debug: boolean; timeout: number; command: string; tmpDir: string; podMonitorAvailable: boolean; localMagicFilepath: string; remoteDir: string; dataDir: string; inCI: boolean; fileServerIP?: string; constructor(configPath: string, namespace: string, tmpDir: string); validateAccess(): Promise; createNamespace(): Promise; spawnFromDef(podDef: any, filesToCopy?: fileMap[], keystore?: string, chainSpecId?: string, dbSnapshot?: string, longRunning?: boolean): Promise; putLocalMagicFile(name: string, container?: string): Promise; createResource(resourseDef: any, scoped?: boolean): Promise; waitPodReady(pod: string): Promise; waitContainerInState(pod: string, container: string, state: string): Promise; waitLog(pod: string, container: string, log: string): Promise; waitTransferContainerReady(pod: string): Promise; createStaticResource(filename: string, scopeNamespace?: string, replacements?: { [properyName: string]: string; }): Promise; createPodMonitor(filename: string, chain: string): Promise; updateResource(filename: string, scopeNamespace?: string, replacements?: ReplaceMapping): Promise; copyFileToPod(identifier: string, localFilePath: string, podFilePath: string, container?: string | undefined, unique?: boolean): Promise; copyFileFromPod(identifier: string, podFilePath: string, localFilePath: string, container?: string | undefined): Promise; runningOnMinikube(): Promise; destroyNamespace(): Promise; getNodeIP(identifier: string): Promise; getNodeInfo(identifier: string, port?: number): Promise<[string, number]>; staticSetup(settings: any): Promise; checkFileServer(): Promise; spawnBackchannel(): Promise; setupCleaner(): Promise; cronJobCleanerSetup(): Promise; upsertCronJob(minutes?: number): Promise; isNamespaceActive(): Promise; startPortForwarding(port: number, identifier: string, namespace?: string, localPort?: number): Promise; getNodeLogs(podName: string, since?: number | undefined, withTimestamp?: boolean): Promise; gzippedLogFiles(podName: string): Promise; getNodeLogsFromKube(podName: string, since?: number | undefined, withTimestamp?: boolean): Promise; readgzippedLogFile(podName: string, file: string): Promise; getPodInfo(podName: string): Promise; dumpLogs(path: string, podName: string): Promise; runCommand(args: string[], opts?: RunCommandOptions): Promise; runScript(identifier: string, scriptPath: string, args?: string[]): Promise; isPodMonitorAvailable(): Promise; getPauseArgs(name: string): string[]; getResumeArgs(name: string): string[]; restartNode(name: string, timeout: number | null): Promise; spawnIntrospector(wsUri: string): Promise; uploadToFileserver(localFilePath: string, fileName: string, fileHash: string): Promise; getLogsCommand(name: string): string; injectChaos(chaosSpecs: any[]): Promise; }