UNPKG

accounts

Version:

Tempo Accounts SDK

31 lines 1.42 kB
import type * as Dialog from '../Dialog.js'; import type * as core_Store from '../Store.js'; /** Provider attachment options for a host request coordinator. */ export type AttachOptions = { /** Dialog implementation used to communicate with the remote app. */ dialog: Dialog.Dialog; /** Remote host URL. */ host: string; /** Provider store used by the dialog transport for account sync and referrer setup. */ store: core_Store.Store; /** Visual theme overrides applied to the embed. */ theme?: Dialog.Theme | undefined; }; /** Remote request enqueue options. */ export type RequestOptions = { /** Active account captured from the provider enqueueing the request. */ account: { address: string; } | undefined; /** Active chain ID captured from the provider enqueueing the request. */ chainId: number; /** Provider RPC request input. */ request: unknown; }; /** Attaches a provider to the host request coordinator and starts the transport driver. */ export declare function attach(host: string, options: AttachOptions): () => void; /** Enqueues an RPC request in the host request coordinator and waits for completion. */ export declare function request(host: string, options: RequestOptions): Promise<unknown>; /** Clears a host-scoped request coordinator. */ export declare function reset(host: string): void; //# sourceMappingURL=RemoteRequests.d.ts.map