UNPKG

437 BTypeScriptView Raw
1export declare type Callback<T> = (err: any, value: T) => void;
2export declare type SBot = any;
3export declare type Config = {
4 path: string;
5 caps: string;
6 remote: any;
7 port: number;
8 manifest: any;
9 key: string;
10};
11export declare type SSBClientFunction = {
12 (cb: Callback<SBot>): void;
13 (opts: object, cb: Callback<SBot>): void;
14 (keys?: object | null, opts?: object | null, cb?: Callback<SBot>): void;
15};