import { LitClientOptions } from './'; import { AddSessionRequestPartial, AddSessionResponse, ListSessionsRequestPartial, ListSessionsResponse, RevokeSessionRequestPartial, RevokeSessionResponse, SessionsClient } from './types'; /** * API interface for litd's Sessions RPC sub-server. */ export declare class SessionsApi { /** * Create a new SessionsApi instance. */ static create(options: LitClientOptions): SessionsApi; /** * The grpc client to communicate with the daemon. */ client: SessionsClient; constructor(client: SessionsClient); /** * AddSession adds and starts a new LNC session. */ addSession(request?: AddSessionRequestPartial): Promise; /** * ListSessions returns all sessions known to the session store. */ listSessions(request?: ListSessionsRequestPartial): Promise; /** * RevokeSession revokes a single session and also stops it if it is currently * active. */ revokeSession(request?: RevokeSessionRequestPartial): Promise; }