import { AbstractErrorResponse, AbstractRequest, AbstractSuccessResponse, WindowHandling } from "../types/messaging"; import { AbstractMessageSchema, DappMetadata, WalletHost } from "../types/protocol"; export type WalletSDKContext = { namespace: MethodSchema["namespace"]; method: MethodSchema["method"]; req: { chainId?: string; params: MethodSchema["params"]; metadata?: DappMetadata; host: WalletHost; raw: AbstractRequest; }; window: (handling: WindowHandling) => void; success: (result: MethodSchema["result"]) => AbstractSuccessResponse; failure: (message: string, opt?: { code?: number; window?: WindowHandling; }) => AbstractErrorResponse; }; export declare const createWalletSDKContext: (request: AbstractRequest, host: WalletHost) => WalletSDKContext; //# sourceMappingURL=context.d.ts.map