import { SubmittableResult } from '@polkadot/api'; import { DispatchError, Hash } from '@polkadot/types/interfaces'; import { SpRuntimeDispatchError } from '../../node_modules/@polymeshassociation/polymesh-types/polkadot/types-lookup'; import { TypeDef } from '@polkadot/types/types'; import { BigNumber } from 'bignumber.js'; import { Context, PolymeshError } from '../internal'; import { TransactionArgument, TxTag } from '../types'; export declare const processType: (rawType: TypeDef, name: string) => TransactionArgument; export declare const dispatchErrorToMessage: (error: SpRuntimeDispatchError | DispatchError) => string; /** * @hidden */ export declare const handleExtrinsicFailure: (error: SpRuntimeDispatchError, data?: Record) => PolymeshError; export declare const handleTransactionSubmissionError: (err: Error) => PolymeshError; /** * @hidden * * given a transaction hash this will poll the chain until it is included in a finalized block * * @note this method should only be used when there is no subscription support for efficiency * * @throws if transaction is not found after a certain amount of time * * @param txHash The hash of the transaction * @param startingBlock The block number from before the transaction was submitted * @param context * @param pollOptions Controls max time to poll, defaults should be OK (finalization takes ~15 seconds) * @returns */ export declare const pollForTransactionFinalization: (txHash: Hash, startingBlock: BigNumber, context: Context, pollOptions?: { delayMs: number; maxAttempts: number; }) => Promise; /** * @hidden * @returns `true` if a tag is an exception to the rule "All multiSig signer transactions should be wrapped as proposals" */ export declare const isMultiSigNoWrapTx: (tag: TxTag) => boolean; //# sourceMappingURL=utils.d.ts.map