interface AppletRPCError { code: string; message: string; details?: unknown; } declare class AppletRPCException extends Error { code: string; details?: unknown; cause?: unknown; constructor(args: { code: string; message: string; details?: unknown; cause?: unknown; }); } type AppletRPCSchema = Record; interface CreateAppletRPCClientOptions { endpoint: string; fetcher?: typeof fetch; timeoutMs?: number; } declare function createAppletRPCClient(options: CreateAppletRPCClientOptions): { call: (method: string, params: TParams) => Promise; callTyped: (method: TMethod, params: TRouter[TMethod]["params"]) => Promise; }; export { type AppletRPCError as A, AppletRPCException as a, type AppletRPCSchema as b, createAppletRPCClient as c };