export type TunnelRequest = ForwardTunnelRequest | ReverseTunnelRequest | ConnectTunnelRequest; /** * Defines an interface for a request to open a tunnel that forwards requests from the local * device to the remote device. */ export interface ForwardTunnelRequest { direction: 'forward'; /** * The authorization information to use for the request. */ authorization: string; /** * The hostname that the request was made to. */ hostname: string; /** * The host that the client wants traffic forwarded to. */ forwardHost: string; /** * The port that the client wants traffic forwarded to. */ forwardPort: number; } /** * Defines an interface for a request to open a tunnel that forwards requests from the remove device * to the local device. */ export interface ReverseTunnelRequest { direction: 'reverse'; /** * The authorization information to use for the request. */ authorization: string; /** * The hostname that the request was made to. */ hostname: string; /** * The port that the client wants traffic forwarded from. */ localPort: number; } /** * Defines an interface for a request to connect to an existing session. */ export interface ConnectTunnelRequest { direction: 'connect'; id: string; } //# sourceMappingURL=ServerTunnelRequest.d.ts.map