mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
19 lines
527 B
TypeScript
19 lines
527 B
TypeScript
/// <reference types="node" />
|
|
import { Server } from 'http';
|
|
import {
|
|
VercelProxyRequest,
|
|
VercelProxyResponse,
|
|
VercelProxyEvent,
|
|
ServerLike,
|
|
} from './types';
|
|
|
|
export declare class Bridge {
|
|
constructor(server?: ServerLike, shouldStoreEvents?: boolean);
|
|
setServer(server: ServerLike): void;
|
|
setStoreEvents(shouldStoreEvents: boolean): void;
|
|
listen(): void | Server;
|
|
launcher(event: VercelProxyEvent, context: any): Promise<VercelProxyResponse>;
|
|
consumeEvent(reqId: string): VercelProxyRequest;
|
|
}
|
|
export {};
|