import { BigNumber, ContractReceipt } from "ethers"; import { ActionData } from "./signer"; export declare const errorSelectors: { Error: string; Panic: string; ActionError: string; }; export type OperationResultError = { actionIndex?: BigNumber; message: string; }; export type OperationResult = { walletAddress: string; nonce: BigNumber; actions: ActionData[]; success: boolean; results: string[]; error?: OperationResultError; }; /** * Checks if a operation result error string is valid and returns * the decoded error. * * @param errorData An error string returned by an operation result. */ export declare const decodeError: (errorData: string) => OperationResultError; /** * Gets the results of operations (and actions) run through VerificationGateway.processBundle. * Decodes unsuccessful operations into an error message and the index of the action that failed. * * @param transactionReceipt Transaction receipt from a VerificationGateway.processBundle transaction * @returns An array of decoded operation results */ export declare const getOperationResults: (txnReceipt: ContractReceipt) => OperationResult[]; //# sourceMappingURL=OperationResults.d.ts.map