2023-04-25 20:04:48 +09:00
|
|
|
/// <reference types="node" />
|
2023-03-03 18:25:07 -07:00
|
|
|
import { SocketProvider } from "./provider-socket.js";
|
|
|
|
import type { Socket } from "net";
|
|
|
|
import type { Networkish } from "./network.js";
|
2023-06-01 17:52:58 -04:00
|
|
|
/**
|
|
|
|
* An **IpcSocketProvider** connects over an IPC socket on the host
|
|
|
|
* which provides fast access to the node, but requires the node and
|
|
|
|
* the script run on the same machine.
|
|
|
|
*/
|
2023-03-03 18:25:07 -07:00
|
|
|
export declare class IpcSocketProvider extends SocketProvider {
|
|
|
|
#private;
|
2023-06-01 17:52:58 -04:00
|
|
|
/**
|
|
|
|
* The connected socket.
|
|
|
|
*/
|
2023-03-03 18:25:07 -07:00
|
|
|
get socket(): Socket;
|
|
|
|
constructor(path: string, network?: Networkish);
|
|
|
|
destroy(): void;
|
|
|
|
_write(message: string): Promise<void>;
|
|
|
|
}
|
2023-04-27 21:19:55 +09:00
|
|
|
//# sourceMappingURL=provider-ipcsocket.d.ts.map
|