import { AccountDeployTransaction, Address, IGetReviewForTransactions, IuseTransactionReviewV2web } from '@argent/x-shared'; import { EnrichedSimulateAndReview } from '@argent/x-shared/simulation'; import { AccountDeploymentData } from '@starknet-io/types-js'; import { ProviderInterface } from 'starknet'; export declare const getReviewForTransactions: ({ feeTokenAddress, calls, selectedAccount, transactionReviewService, appDomain, accountDeployTransaction, isDelayedTransaction, }: IGetReviewForTransactions) => Promise<{ result: { transactions?: ({ simulation: { feeEstimation: { maxFee: number; unit: "WEI"; overallFee: number; gasPrice: number; gasUsage: number; dataGasConsumed?: number | undefined; dataGasPrice?: number | undefined; } | { unit: "FRI"; overallFee: number; gasPrice: number; gasUsage: number; maxAmount: number; maxPricePerUnit: number; dataGasConsumed?: number | undefined; dataGasPrice?: number | undefined; }; approvals?: { owner: `0x${string}`; tokenAddress: `0x${string}`; spender: `0x${string}`; approvalForAll: boolean; value?: string | undefined; details?: { name: string; address: `0x${string}`; symbol?: string | undefined; type?: string | undefined; unknown?: boolean | undefined; decimals?: number | undefined; description?: string | undefined; links?: { discord?: string | undefined; twitter?: string | undefined; external?: string | undefined; } | undefined; iconUrl?: string | undefined; usdValue?: string | undefined; imageUrls?: { banner?: string | null | undefined; preview?: string | null | undefined; full?: string | null | undefined; original?: string | null | undefined; } | undefined; } | undefined; }[] | undefined; transfers?: { tokenAddress: `0x${string}`; from: `0x${string}`; to: `0x${string}`; value?: string | undefined; tokenId?: string | undefined; details?: { name: string; address: `0x${string}`; symbol?: string | undefined; type?: string | undefined; unknown?: boolean | undefined; decimals?: number | undefined; description?: string | undefined; links?: { discord?: string | undefined; twitter?: string | undefined; external?: string | undefined; } | undefined; iconUrl?: string | undefined; usdValue?: string | undefined; imageUrls?: { banner?: string | null | undefined; preview?: string | null | undefined; full?: string | null | undefined; original?: string | null | undefined; } | undefined; } | undefined; }[] | undefined; calculatedNonce?: string | undefined; summary?: { type: string; token: { name: string; address: `0x${string}`; symbol?: string | undefined; type?: string | undefined; unknown?: boolean | undefined; decimals?: number | undefined; description?: string | undefined; links?: { discord?: string | undefined; twitter?: string | undefined; external?: string | undefined; } | undefined; iconUrl?: string | undefined; usdValue?: string | undefined; imageUrls?: { banner?: string | null | undefined; preview?: string | null | undefined; full?: string | null | undefined; original?: string | null | undefined; } | undefined; }; label: string; value?: string | undefined; tokenId?: string | undefined; usdValue?: string | undefined; sent?: boolean | undefined; tokenIdDetails?: { name?: string | undefined; description?: string | undefined; imageUrls?: { banner?: string | null | undefined; preview?: string | null | undefined; full?: string | null | undefined; original?: string | null | undefined; } | undefined; } | undefined; }[] | undefined; }; reviewOfTransaction?: { assessment: "verified" | "neutral" | "partial" | "warn"; reviews: { assessment: "verified" | "neutral" | "partial" | "warn"; action: { name: string; properties: ({ type: "amount"; amount: string; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; usd: string; editable: boolean; } | { address: string; type: "address"; label: string; verified?: boolean | undefined; addressName?: string | undefined; } | { value: string; type: "timestamp"; label: string; } | { type: "token_address"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; } | { type: "calldata"; calldata: string[]; entrypoint: string; label: string; } | { type: "text"; label: string; text: string; } | { type: "nft"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; })[]; defaultProperties?: ({ type: "amount"; amount: string; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; usd: string; editable: boolean; } | { address: string; type: "address"; label: string; verified?: boolean | undefined; addressName?: string | undefined; } | { value: string; type: "timestamp"; label: string; } | { type: "token_address"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; } | { type: "calldata"; calldata: string[]; entrypoint: string; label: string; } | { type: "text"; label: string; text: string; } | { type: "nft"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; })[] | undefined; }; warnings?: { reason: string; severity: "high" | "critical" | "caution" | "info"; details?: { value?: string | number | undefined; contract_address?: `0x${string}` | undefined; unknown_token?: unknown; date_of_addition?: string | undefined; reason?: string | undefined; } | undefined; }[] | undefined; assessmentReasons?: string[] | undefined; assessmentDetails?: { contract_address: string; } | undefined; }[]; warnings?: { reason: string; severity: "high" | "critical" | "caution" | "info"; details?: { value?: string | number | undefined; contract_address?: `0x${string}` | undefined; unknown_token?: unknown; date_of_addition?: string | undefined; reason?: string | undefined; } | undefined; }[] | undefined; assessmentDetails?: { contract_address: string; } | undefined; targetedDapp?: { name: string; description: string; logoUrl: string; argentVerified: boolean; links: { name: string; url: string; position: number; }[]; iconUrl: string; } | undefined; } | undefined; simulationError?: undefined; } | { simulationError: { code?: number | undefined; message?: string | undefined; error?: string | undefined; label?: string | undefined; }; reviewOfTransaction?: { assessment: "verified" | "neutral" | "partial" | "warn"; reviews: { assessment: "verified" | "neutral" | "partial" | "warn"; action: { name: string; properties: ({ type: "amount"; amount: string; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; usd: string; editable: boolean; } | { address: string; type: "address"; label: string; verified?: boolean | undefined; addressName?: string | undefined; } | { value: string; type: "timestamp"; label: string; } | { type: "token_address"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; } | { type: "calldata"; calldata: string[]; entrypoint: string; label: string; } | { type: "text"; label: string; text: string; } | { type: "nft"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; })[]; defaultProperties?: ({ type: "amount"; amount: string; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; usd: string; editable: boolean; } | { address: string; type: "address"; label: string; verified?: boolean | undefined; addressName?: string | undefined; } | { value: string; type: "timestamp"; label: string; } | { type: "token_address"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; } | { type: "calldata"; calldata: string[]; entrypoint: string; label: string; } | { type: "text"; label: string; text: string; } | { type: "nft"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; })[] | undefined; }; warnings?: { reason: string; severity: "high" | "critical" | "caution" | "info"; details?: { value?: string | number | undefined; contract_address?: `0x${string}` | undefined; unknown_token?: unknown; date_of_addition?: string | undefined; reason?: string | undefined; } | undefined; }[] | undefined; assessmentReasons?: string[] | undefined; assessmentDetails?: { contract_address: string; } | undefined; }[]; warnings?: { reason: string; severity: "high" | "critical" | "caution" | "info"; details?: { value?: string | number | undefined; contract_address?: `0x${string}` | undefined; unknown_token?: unknown; date_of_addition?: string | undefined; reason?: string | undefined; } | undefined; }[] | undefined; assessmentDetails?: { contract_address: string; } | undefined; targetedDapp?: { name: string; description: string; logoUrl: string; argentVerified: boolean; links: { name: string; url: string; position: number; }[]; iconUrl: string; } | undefined; } | undefined; simulation?: undefined; })[] | undefined; enrichedFeeEstimation?: { transactions: { amount: bigint; pricePerUnit: bigint; feeTokenAddress: `0x${string}`; max?: { amount: bigint; pricePerUnit: bigint; } | { maxFee: bigint; } | undefined; dataGasConsumed?: bigint | undefined; dataGasPrice?: bigint | undefined; }; deployment?: { amount: bigint; pricePerUnit: bigint; feeTokenAddress: `0x${string}`; max?: { amount: bigint; pricePerUnit: bigint; } | { maxFee: bigint; } | undefined; dataGasConsumed?: bigint | undefined; dataGasPrice?: bigint | undefined; } | undefined; } | undefined; isBackendDown?: boolean | undefined; } | undefined; } | undefined>; export declare const checkGasFeeBalance: (accountAddress: string, result: EnrichedSimulateAndReview, feeTokenAddress: Address, provider: Pick) => Promise; export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress, calls, selectedAccount, transactionReviewService, appDomain, accountDeployPayload, provider, isDelayedTransaction, }: IuseTransactionReviewV2web) => Promise<{ isSendingMoreThanBalanceAndGas: boolean; transactions?: ({ simulation: { feeEstimation: { maxFee: number; unit: "WEI"; overallFee: number; gasPrice: number; gasUsage: number; dataGasConsumed?: number | undefined; dataGasPrice?: number | undefined; } | { unit: "FRI"; overallFee: number; gasPrice: number; gasUsage: number; maxAmount: number; maxPricePerUnit: number; dataGasConsumed?: number | undefined; dataGasPrice?: number | undefined; }; approvals?: { owner: `0x${string}`; tokenAddress: `0x${string}`; spender: `0x${string}`; approvalForAll: boolean; value?: string | undefined; details?: { name: string; address: `0x${string}`; symbol?: string | undefined; type?: string | undefined; unknown?: boolean | undefined; decimals?: number | undefined; description?: string | undefined; links?: { discord?: string | undefined; twitter?: string | undefined; external?: string | undefined; } | undefined; iconUrl?: string | undefined; usdValue?: string | undefined; imageUrls?: { banner?: string | null | undefined; preview?: string | null | undefined; full?: string | null | undefined; original?: string | null | undefined; } | undefined; } | undefined; }[] | undefined; transfers?: { tokenAddress: `0x${string}`; from: `0x${string}`; to: `0x${string}`; value?: string | undefined; tokenId?: string | undefined; details?: { name: string; address: `0x${string}`; symbol?: string | undefined; type?: string | undefined; unknown?: boolean | undefined; decimals?: number | undefined; description?: string | undefined; links?: { discord?: string | undefined; twitter?: string | undefined; external?: string | undefined; } | undefined; iconUrl?: string | undefined; usdValue?: string | undefined; imageUrls?: { banner?: string | null | undefined; preview?: string | null | undefined; full?: string | null | undefined; original?: string | null | undefined; } | undefined; } | undefined; }[] | undefined; calculatedNonce?: string | undefined; summary?: { type: string; token: { name: string; address: `0x${string}`; symbol?: string | undefined; type?: string | undefined; unknown?: boolean | undefined; decimals?: number | undefined; description?: string | undefined; links?: { discord?: string | undefined; twitter?: string | undefined; external?: string | undefined; } | undefined; iconUrl?: string | undefined; usdValue?: string | undefined; imageUrls?: { banner?: string | null | undefined; preview?: string | null | undefined; full?: string | null | undefined; original?: string | null | undefined; } | undefined; }; label: string; value?: string | undefined; tokenId?: string | undefined; usdValue?: string | undefined; sent?: boolean | undefined; tokenIdDetails?: { name?: string | undefined; description?: string | undefined; imageUrls?: { banner?: string | null | undefined; preview?: string | null | undefined; full?: string | null | undefined; original?: string | null | undefined; } | undefined; } | undefined; }[] | undefined; }; reviewOfTransaction?: { assessment: "verified" | "neutral" | "partial" | "warn"; reviews: { assessment: "verified" | "neutral" | "partial" | "warn"; action: { name: string; properties: ({ type: "amount"; amount: string; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; usd: string; editable: boolean; } | { address: string; type: "address"; label: string; verified?: boolean | undefined; addressName?: string | undefined; } | { value: string; type: "timestamp"; label: string; } | { type: "token_address"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; } | { type: "calldata"; calldata: string[]; entrypoint: string; label: string; } | { type: "text"; label: string; text: string; } | { type: "nft"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; })[]; defaultProperties?: ({ type: "amount"; amount: string; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; usd: string; editable: boolean; } | { address: string; type: "address"; label: string; verified?: boolean | undefined; addressName?: string | undefined; } | { value: string; type: "timestamp"; label: string; } | { type: "token_address"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; } | { type: "calldata"; calldata: string[]; entrypoint: string; label: string; } | { type: "text"; label: string; text: string; } | { type: "nft"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; })[] | undefined; }; warnings?: { reason: string; severity: "high" | "critical" | "caution" | "info"; details?: { value?: string | number | undefined; contract_address?: `0x${string}` | undefined; unknown_token?: unknown; date_of_addition?: string | undefined; reason?: string | undefined; } | undefined; }[] | undefined; assessmentReasons?: string[] | undefined; assessmentDetails?: { contract_address: string; } | undefined; }[]; warnings?: { reason: string; severity: "high" | "critical" | "caution" | "info"; details?: { value?: string | number | undefined; contract_address?: `0x${string}` | undefined; unknown_token?: unknown; date_of_addition?: string | undefined; reason?: string | undefined; } | undefined; }[] | undefined; assessmentDetails?: { contract_address: string; } | undefined; targetedDapp?: { name: string; description: string; logoUrl: string; argentVerified: boolean; links: { name: string; url: string; position: number; }[]; iconUrl: string; } | undefined; } | undefined; simulationError?: undefined; } | { simulationError: { code?: number | undefined; message?: string | undefined; error?: string | undefined; label?: string | undefined; }; reviewOfTransaction?: { assessment: "verified" | "neutral" | "partial" | "warn"; reviews: { assessment: "verified" | "neutral" | "partial" | "warn"; action: { name: string; properties: ({ type: "amount"; amount: string; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; usd: string; editable: boolean; } | { address: string; type: "address"; label: string; verified?: boolean | undefined; addressName?: string | undefined; } | { value: string; type: "timestamp"; label: string; } | { type: "token_address"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; } | { type: "calldata"; calldata: string[]; entrypoint: string; label: string; } | { type: "text"; label: string; text: string; } | { type: "nft"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; })[]; defaultProperties?: ({ type: "amount"; amount: string; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; usd: string; editable: boolean; } | { address: string; type: "address"; label: string; verified?: boolean | undefined; addressName?: string | undefined; } | { value: string; type: "timestamp"; label: string; } | { type: "token_address"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; } | { type: "calldata"; calldata: string[]; entrypoint: string; label: string; } | { type: "text"; label: string; text: string; } | { type: "nft"; token: { name: string; address: string; type: string; unknown: boolean; symbol?: string | undefined; decimals?: number | undefined; iconUrl?: string | undefined; }; label: string; })[] | undefined; }; warnings?: { reason: string; severity: "high" | "critical" | "caution" | "info"; details?: { value?: string | number | undefined; contract_address?: `0x${string}` | undefined; unknown_token?: unknown; date_of_addition?: string | undefined; reason?: string | undefined; } | undefined; }[] | undefined; assessmentReasons?: string[] | undefined; assessmentDetails?: { contract_address: string; } | undefined; }[]; warnings?: { reason: string; severity: "high" | "critical" | "caution" | "info"; details?: { value?: string | number | undefined; contract_address?: `0x${string}` | undefined; unknown_token?: unknown; date_of_addition?: string | undefined; reason?: string | undefined; } | undefined; }[] | undefined; assessmentDetails?: { contract_address: string; } | undefined; targetedDapp?: { name: string; description: string; logoUrl: string; argentVerified: boolean; links: { name: string; url: string; position: number; }[]; iconUrl: string; } | undefined; } | undefined; simulation?: undefined; })[] | undefined; enrichedFeeEstimation?: { transactions: { amount: bigint; pricePerUnit: bigint; feeTokenAddress: `0x${string}`; max?: { amount: bigint; pricePerUnit: bigint; } | { maxFee: bigint; } | undefined; dataGasConsumed?: bigint | undefined; dataGasPrice?: bigint | undefined; }; deployment?: { amount: bigint; pricePerUnit: bigint; feeTokenAddress: `0x${string}`; max?: { amount: bigint; pricePerUnit: bigint; } | { maxFee: bigint; } | undefined; dataGasConsumed?: bigint | undefined; dataGasPrice?: bigint | undefined; } | undefined; } | undefined; isBackendDown?: boolean | undefined; } | undefined>; export declare const buildAccountDeployTransaction: (accountDeployPayload?: AccountDeploymentData) => AccountDeployTransaction | undefined;