/// export declare function terminateThread(threadHandle: Buffer, exitCode?: number): Promise;