th3w1zard1's picture
Deploy GPTR trask-http from community-bots local CI
3a25f97 verified
import http from "node:http";
export interface NodeApiHostOptions<THub> {
requestListener: http.RequestListener;
createHub: (server: http.Server) => THub;
}
export interface NodeApiHost<THub> {
server: http.Server;
hub: THub;
listen: (port: number, onListening?: () => void) => void;
}
export declare const createNodeApiHost: <THub>(options: NodeApiHostOptions<THub>) => NodeApiHost<THub>;