import { SignerData } from "@cosmjs/stargate"; import { Any } from "cosmjs-types/google/protobuf/any"; import { SignDoc, TxRaw } from "cosmjs-types/cosmos/tx/v1beta1/tx"; import { StdSignDoc } from "@cosmjs/amino"; /** * Contains the result of a signature. */ export interface SignatureResult { readonly signerData: SignerData; readonly pubKey: Any; readonly signDoc: SignDoc | StdSignDoc; readonly txRaw: TxRaw; } /** * Checks whether the given value is a SignDoc instance or not. */ export declare function isSignDoc(value: StdSignDoc | SignDoc): value is SignDoc; /** * Checks whether the given value is a StdSignDoc instance or not. */ export declare function isStdSignDoc(value: StdSignDoc | SignDoc): value is StdSignDoc; /** * Returns the public key raw bytes, trimming the 2 bytes prefix that is usually present inside the key value. */ export declare function getPubKeyRawBytes(result: SignatureResult): Uint8Array; /** * Returns the public key bytes associated with the given result. */ export declare function getPubKeyBytes(result: SignatureResult): Uint8Array; /** * Returns the signed bytes associated with the given result. */ export declare function getSignedBytes(result: SignatureResult): Uint8Array; /** * Returns the signature bytes associated with the given result. */ export declare function getSignatureBytes(result: SignatureResult): Uint8Array;