///
import type { TransactionPayControllerMessenger } from "../index.cjs";
/**
* Creates a mock controller messenger for testing.
*
* @returns The mock messenger and associated mock functions.
*/
export declare function getMessengerMock(): {
addTransactionMock: jest.MockedFn<(txParams: import("@metamask/transaction-controller").TransactionParams, options: import("@metamask/transaction-controller").AddTransactionOptions) => Promise>;
fetchQuotesMock: jest.Mock;
findNetworkClientIdByChainIdMock: jest.MockedFn<(chainId: `0x${string}`) => string>;
getAccountTrackerControllerStateMock: jest.MockedFn<() => import("@metamask/assets-controllers").AccountTrackerControllerState>;
getBridgeStatusControllerStateMock: jest.MockedFn<() => import("@metamask/bridge-status-controller").BridgeStatusControllerState>;
getControllerStateMock: jest.MockedFn<() => import("../index.cjs").TransactionPayControllerState>;
getCurrencyRateControllerStateMock: jest.Mock;
getGasFeeControllerStateMock: jest.Mock;
getNetworkClientByIdMock: jest.MockedFn<{
(infuraNetworkClientId: import("@metamask/controller-utils").InfuraNetworkType): import("@metamask/network-controller").AutoManagedNetworkClient;
(customNetworkClientId: string): import("@metamask/network-controller").AutoManagedNetworkClient;
}>;
getRemoteFeatureFlagControllerStateMock: jest.MockedFn<() => import("@metamask/remote-feature-flag-controller").RemoteFeatureFlagControllerState>;
getStrategyMock: jest.MockedFn<(transaction: import("@metamask/transaction-controller").TransactionMeta) => Promise>;
getTokenBalanceControllerStateMock: jest.MockedFn<() => import("@metamask/assets-controllers").TokenBalancesControllerState>;
getTokenRatesControllerStateMock: jest.MockedFn<() => import("@metamask/assets-controllers").TokenRatesControllerState>;
getTokensControllerStateMock: jest.MockedFn<() => import("@metamask/assets-controllers").TokensControllerState>;
getTransactionControllerStateMock: jest.MockedFn<() => import("@metamask/transaction-controller").TransactionControllerState>;
messenger: TransactionPayControllerMessenger;
publish: (eventType: EventType, ...payload: import("@metamask/base-controller").ExtractEventPayload | import("@metamask/base-controller").ExtractEventPayload | import("@metamask/base-controller").ExtractEventPayload | import("@metamask/base-controller").ExtractEventPayload) => void;
submitTransactionMock: jest.MockedFunction<(accountAddress: string, quoteResponse: {
quote: {
requestId: string;
srcChainId: number;
destChainId: number;
srcAsset: {
symbol: string;
address: string;
name: string;
chainId: number;
decimals: number;
assetId: `${string}:${string}/${string}:${string}`;
iconUrl?: string | null | undefined;
icon?: string | null | undefined;
};
destAsset: {
symbol: string;
address: string;
name: string;
chainId: number;
decimals: number;
assetId: `${string}:${string}/${string}:${string}`;
iconUrl?: string | null | undefined;
icon?: string | null | undefined;
};
srcTokenAmount: string;
destTokenAmount: string;
minDestTokenAmount: string;
feeData: {
metabridge: {
amount: string;
asset: {
symbol: string;
address: string;
name: string;
chainId: number;
decimals: number;
assetId: `${string}:${string}/${string}:${string}`;
iconUrl?: string | null | undefined;
icon?: string | null | undefined;
};
};
txFee?: ({
amount: string;
asset: {
symbol: string;
address: string;
name: string;
chainId: number;
decimals: number;
assetId: `${string}:${string}/${string}:${string}`;
iconUrl?: string | null | undefined;
icon?: string | null | undefined;
};
} & {
maxPriorityFeePerGas: string;
maxFeePerGas: string;
}) | undefined;
};
bridgeId: string;
bridges: string[];
steps: {
action: import("@metamask/bridge-controller").ActionTypes;
protocol: {
name: string;
displayName?: string | undefined;
icon?: string | undefined;
};
srcChainId: number;
srcAsset: {
symbol: string;
address: string;
name: string;
chainId: number;
decimals: number;
assetId: `${string}:${string}/${string}:${string}`;
iconUrl?: string | null | undefined;
icon?: string | null | undefined;
};
destAsset: {
symbol: string;
address: string;
name: string;
chainId: number;
decimals: number;
assetId: `${string}:${string}/${string}:${string}`;
iconUrl?: string | null | undefined;
icon?: string | null | undefined;
};
srcAmount: string;
destAmount: string;
destChainId?: number | undefined;
}[];
refuel?: {
action: import("@metamask/bridge-controller").ActionTypes;
protocol: {
name: string;
displayName?: string | undefined;
icon?: string | undefined;
};
srcChainId: number;
srcAsset: {
symbol: string;
address: string;
name: string;
chainId: number;
decimals: number;
assetId: `${string}:${string}/${string}:${string}`;
iconUrl?: string | null | undefined;
icon?: string | null | undefined;
};
destAsset: {
symbol: string;
address: string;
name: string;
chainId: number;
decimals: number;
assetId: `${string}:${string}/${string}:${string}`;
iconUrl?: string | null | undefined;
icon?: string | null | undefined;
};
srcAmount: string;
destAmount: string;
destChainId?: number | undefined;
} | undefined;
gasIncluded?: boolean | undefined;
gasIncluded7702?: boolean | undefined;
priceData?: {
totalFromAmountUsd?: string | undefined;
totalToAmountUsd?: string | undefined;
priceImpact?: string | undefined;
totalFeeAmountUsd?: string | undefined;
} | undefined;
};
estimatedProcessingTimeInSeconds: number;
trade: string | {
data: string;
value: string;
to: string;
from: string;
gasLimit: number | null;
chainId: number;
effectiveGas?: number | undefined;
} | {
unsignedPsbtBase64: string;
inputsToSign: {}[] | null;
};
approval?: {
data: string;
value: string;
to: string;
from: string;
gasLimit: number | null;
chainId: number;
effectiveGas?: number | undefined;
} | undefined;
} & {
trade: string | {
data: string;
value: string;
to: string;
from: string;
gasLimit: number | null;
chainId: number;
effectiveGas?: number | undefined;
} | {
unsignedPsbtBase64: string;
inputsToSign: {}[] | null;
};
approval?: {
data: string;
value: string;
to: string;
from: string;
gasLimit: number | null;
chainId: number;
effectiveGas?: number | undefined;
} | undefined;
featureId?: import("@metamask/bridge-controller").FeatureId | undefined;
} & Partial, isStxEnabledOnClient: boolean) => Promise>>;
updateTransactionMock: jest.MockedFn<(transactionMeta: import("@metamask/transaction-controller").TransactionMeta, note: string) => void>;
};
//# sourceMappingURL=messenger-mock.d.cts.map