declare module "slip" { export function encode(data: ArrayLike | Buffer, options?: object): Uint8Array; export class Decoder { constructor(options: { maxMessageSize: number; bufferSize: number; onMessage: (msg: Uint8Array) => void; onError: (msgBuffer: Uint8Array, errorMsg: string) => void; }); decode(data: ArrayLike | Buffer): Uint8Array; } }