/// import { DataItem, RegistryItem, CryptoKeypath } from '@keystonehq/bc-ur-registry'; import { CryptoCoinIdentity } from '@ngraveio/bc-ur-registry-crypto-coin-identity'; import { SignRequestMeta } from './SignRequestMetadata'; interface ICryptoSignRequestProps { requestId?: Buffer; coinId: CryptoCoinIdentity; derivationPath: CryptoKeypath | string; signData: Buffer; masterFingerprint?: Buffer; origin?: string; metadata?: SignRequestMeta | object; } export declare class CryptoSignRequest extends RegistryItem { private _requestId; private coinId; private _derivationPath; private signData; private masterFingerprint?; private origin?; private metadata?; getRegistryType: () => import("@keystonehq/bc-ur-registry").RegistryType; constructor({ requestId, coinId, derivationPath, signData, masterFingerprint, origin, metadata, }: ICryptoSignRequestProps); private set requestId(value); private set derivationPath(value); /** * A static method to check if provided inputs follow the rules */ static checkInputs: ({ requestId, coinId, signData, masterFingerprint, origin, }: ICryptoSignRequestProps) => void; getRequestId: () => Buffer; getCoinId: () => CryptoCoinIdentity; getDerivationPath: () => CryptoKeypath; getSignData: () => Buffer; getMasterFingerprint: () => Buffer | undefined; getOrigin: () => string | undefined; getMetadata: () => SignRequestMeta | undefined; /** * Converts CryptoSignRequest to an object with tag support * * @returns {DataItem} DataItem representation of CryptoSignRequest */ toDataItem: () => DataItem; /** * Finds correspoinding metadata type for given coin id from global `signMetaMap` map * If no metadata is found, it will return general `SignRequestMeta` type * @param coinId * @returns */ static findMetadataType(coinId: CryptoCoinIdentity): typeof SignRequestMeta; /** * Creates CryptoSignRequest from DataItem * * @param dataItem object with keys and values of CryptoSignRequest * @returns */ static fromDataItem: (dataItem: DataItem) => CryptoSignRequest; static fromCBOR: (_cborPayload: Buffer) => CryptoSignRequest; } export {};