UNPKG

442 BTypeScriptView Raw
1/// <reference types="node" />
2import reduct = require('reduct');
3import { IlpPrepare } from 'ilp-packet';
4export default class EchoController {
5 private config;
6 private routeBuilder;
7 constructor(deps: reduct.Injector);
8 handle(data: Buffer, sourceAccount: string, { parsedPacket, outbound }: {
9 parsedPacket: IlpPrepare;
10 outbound: (data: Buffer, accountId: string) => Promise<Buffer>;
11 }): Promise<Buffer>;
12}