export declare namespace nam { const socketRpcEventNamePrefix = "socket-rpc.device"; interface AppletImage { naType: string; naVersion: string; packageName: string; version: string; } interface AppletRunOptions extends AppletImage { appletId: string; appletToken: string; } interface AppletStatus extends AppletImage { appletId: string; ip: string; port: number; status: string; } interface RouteOptions extends AppletImage { appletId: string; } interface Route { route: string; target: string; } interface RequestOptions extends RouteOptions { uri: string; method: string; body?: object; headers?: { [key: string]: string; }; resolveWithFullResponse?: boolean; } interface WorkOptions { route: RouteOptions; worker: Worker; payload: object; } interface RequestResponse { statusCode: number; headers?: { [key: string]: string; }; body: object; } interface Worker { handler: string; name: string; } interface AccountOperateOptions { accountId: string; appletId: string; body: string; } interface INAM { install(options: AppletImage): Promise; images(): Promise; run(options: AppletRunOptions): Promise; ps(): Promise; kill(options: AppletImage): Promise; work(options: WorkOptions): Promise; request(options: RequestOptions): Promise; } }