import * as types from './types'; /** * Call data key pair ID domain separation context base. */ export declare const CALL_DATA_KEY_PAIR_ID_CONTEXT_BASE = "oasis-runtime-sdk/private: tx"; /** * EncodeConfig is call encoding configuration. * golang: oasis-sdk/client-sdk/go/callformat/callformat.go * rust: */ export interface EncodeConfig { /** * publicKey is an optional runtime's call data public key to use for encrypted call formats. */ publicKey?: types.KeyManagerSignedPublicKey; } export interface MetaEncryptedX25519DeoxysII { sk: Uint8Array; pk: Uint8Array; } /** * encodeCallWithNonceAndKeys encodes a call based on its configured call format. * It returns the encoded call and any metadata needed to successfully decode the result. */ export declare function encodeCallWithNonceAndKeys(nonce: Uint8Array, sk: Uint8Array, pk: Uint8Array, call: types.Call, format: types.CallFormat, config?: EncodeConfig): [types.Call, unknown]; /** * encodeCall randomly generates nonce and keyPair and then call encodeCallWithNonceAndKeys * It returns the encoded call and any metadata needed to successfully decode the result. */ export declare function encodeCall(call: types.Call, format: types.CallFormat, config?: EncodeConfig): [types.Call, unknown]; /** * decodeResult performs result decoding based on the specified call format metadata. */ export declare function decodeResult(result: types.CallResult, format: types.CallFormat, meta?: MetaEncryptedX25519DeoxysII): types.CallResult;