import type { SnapResponse, SnapResponseWithInterface } from "./types.mjs"; export declare const TransactionOptionsStruct: import("@metamask/superstruct").Struct<{ chainId: string; origin: string; from: `0x${string}`; to: `0x${string}`; value: `0x${string}`; gasLimit: `0x${string}`; maxFeePerGas: `0x${string}`; maxPriorityFeePerGas: `0x${string}`; nonce: `0x${string}`; data: `0x${string}`; }, { /** * The CAIP-2 chain ID to send the transaction on. Defaults to `eip155:1`. */ chainId: import("@metamask/superstruct").Struct; /** * The origin to send the transaction from. Defaults to `metamask.io`. */ origin: import("@metamask/superstruct").Struct; /** * The address to send the transaction from. Defaults to a randomly generated * address. */ from: import("@metamask/superstruct").Struct<`0x${string}`, null>; /** * The address to send the transaction to. Defaults to a randomly generated * address. */ to: import("@metamask/superstruct").Struct<`0x${string}`, null>; /** * The value to send with the transaction. The value may be specified as a * `number`, `bigint`, `string`, or `Uint8Array`. Defaults to `0`. */ value: import("@metamask/superstruct").Struct<`0x${string}`, null>; /** * The gas limit to use for the transaction. The gas limit may be specified * as a `number`, `bigint`, `string`, or `Uint8Array`. Defaults to `21_000`. */ gasLimit: import("@metamask/superstruct").Struct<`0x${string}`, null>; /** * The max fee per gas (in Wei) to use for the transaction. The max fee per * gas may be specified as a `number`, `bigint`, `string`, or `Uint8Array`. * Defaults to `1`. */ maxFeePerGas: import("@metamask/superstruct").Struct<`0x${string}`, null>; /** * The max priority fee per gas (in Wei) to use for the transaction. The max * priority fee per gas may be specified as a `number`, `bigint`, `string`, * or `Uint8Array`. Defaults to `1`. */ maxPriorityFeePerGas: import("@metamask/superstruct").Struct<`0x${string}`, null>; /** * The nonce to use for the transaction. The nonce may be specified as a * `number`, `bigint`, `string`, or `Uint8Array`. Defaults to `0`. */ nonce: import("@metamask/superstruct").Struct<`0x${string}`, null>; /** * The data to send with the transaction. The data may be specified as a * `number`, `bigint`, `string`, or `Uint8Array`. Defaults to `0x`. */ data: import("@metamask/superstruct").Struct<`0x${string}`, null>; }>; export declare const SignatureOptionsStruct: import("@metamask/superstruct").Struct<{ origin: string; from: `0x${string}`; data: `0x${string}` | Record | Record[]; signatureMethod: "eth_signTypedData" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "personal_sign"; }, { /** * The origin making the signature request. */ origin: import("@metamask/superstruct").Struct; /** * The address signing the signature request. Defaults to a randomly generated * address. */ from: import("@metamask/superstruct").Struct<`0x${string}`, null>; /** * The data to send with the transaction. The data may be specified as a * `string`, an object, or an array of objects. This covers the data types * for the supported signature methods. Defaults to `0x`. */ data: import("@metamask/superstruct").Struct<`0x${string}` | Record | Record[], null>; /** * The signature method being used. */ signatureMethod: import("@metamask/superstruct").Struct<"eth_signTypedData" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "personal_sign", null>; }>; export declare const BaseNameLookupOptionsStruct: import("@metamask/superstruct").Struct<{ chainId: string; }, { /** * The CAIP-2 chain ID. Defaults to `eip155:1`. */ chainId: import("@metamask/superstruct").Struct; }>; export declare const NameLookupOptionsStruct: import("@metamask/superstruct").Struct<{ address: string; chainId: string; } | { chainId: string; domain: string; }, null>; export declare const SnapOptionsStruct: import("@metamask/superstruct").Struct<{ timeout?: number | undefined; }, { /** * The timeout in milliseconds to use for requests to the snap. Defaults to * `1000`. */ timeout: import("@metamask/superstruct").Struct; }>; export declare const JsonRpcMockOptionsStruct: import("@metamask/superstruct").Struct<{ method: string; result: import("@metamask/snaps-sdk").Json; }, { method: import("@metamask/superstruct").Struct; result: import("@metamask/superstruct").Struct; }>; export declare const InterfaceStruct: import("@metamask/superstruct").Struct<{ content?: import("@metamask/snaps-sdk/jsx").JSXElement | undefined; }, { content: import("@metamask/superstruct").Struct; }>; export declare const SnapResponseWithoutInterfaceStruct: import("@metamask/superstruct").Struct<{ id: string; response: { result: import("@metamask/snaps-sdk").Json; } | { error: import("@metamask/snaps-sdk").Json; }; notifications: { id: string; message: string; type: "inApp" | "native"; content?: string | undefined; title?: string | undefined; footerLink?: { href: string; text: string; } | undefined; }[]; tracked: { errors: import("@metamask/snaps-sdk").TrackableError[]; events: { event: string; properties?: Record | undefined; sensitiveProperties?: Record | undefined; }[]; traces: { name: string; id?: string | undefined; data?: Record | undefined; parentContext?: import("@metamask/snaps-sdk").Json | undefined; startTime?: number | undefined; tags?: Record | undefined; }[]; }; }, { id: import("@metamask/superstruct").Struct; response: import("@metamask/superstruct").Struct<{ result: import("@metamask/snaps-sdk").Json; } | { error: import("@metamask/snaps-sdk").Json; }, null>; notifications: import("@metamask/superstruct").Struct<{ id: string; message: string; type: "inApp" | "native"; content?: string | undefined; title?: string | undefined; footerLink?: { href: string; text: string; } | undefined; }[], import("@metamask/superstruct").Struct<{ id: string; message: string; type: "inApp" | "native"; content?: string | undefined; title?: string | undefined; footerLink?: { href: string; text: string; } | undefined; }, { id: import("@metamask/superstruct").Struct; message: import("@metamask/superstruct").Struct; type: import("@metamask/superstruct").Struct<"inApp" | "native", null>; title: import("@metamask/superstruct").Struct; content: import("@metamask/superstruct").Struct; footerLink: import("@metamask/superstruct").Struct<{ href: string; text: string; } | undefined, { href: import("@metamask/superstruct").Struct; text: import("@metamask/superstruct").Struct; }>; }>>; tracked: import("@metamask/superstruct").Struct<{ errors: import("@metamask/snaps-sdk").TrackableError[]; events: { event: string; properties?: Record | undefined; sensitiveProperties?: Record | undefined; }[]; traces: { name: string; id?: string | undefined; data?: Record | undefined; parentContext?: import("@metamask/snaps-sdk").Json | undefined; startTime?: number | undefined; tags?: Record | undefined; }[]; }, { errors: import("@metamask/superstruct").Struct>; events: import("@metamask/superstruct").Struct<{ event: string; properties?: Record | undefined; sensitiveProperties?: Record | undefined; }[], import("@metamask/superstruct").Struct<{ event: string; properties?: Record | undefined; sensitiveProperties?: Record | undefined; }, { event: import("@metamask/superstruct").Struct; properties: import("@metamask/superstruct").Struct | undefined, null>; sensitiveProperties: import("@metamask/superstruct").Struct | undefined, null>; }>>; traces: import("@metamask/superstruct").Struct<{ name: string; id?: string | undefined; data?: Record | undefined; parentContext?: import("@metamask/snaps-sdk").Json | undefined; startTime?: number | undefined; tags?: Record | undefined; }[], import("@metamask/superstruct").Struct<{ name: string; id?: string | undefined; data?: Record | undefined; parentContext?: import("@metamask/snaps-sdk").Json | undefined; startTime?: number | undefined; tags?: Record | undefined; }, { id: import("@metamask/superstruct").Struct; name: import("@metamask/superstruct").Struct; parentContext: import("@metamask/superstruct").Struct; startTime: import("@metamask/superstruct").Struct; data: import("@metamask/superstruct").Struct | undefined, null>; tags: import("@metamask/superstruct").Struct | undefined, null>; }>>; }>; }>; export declare const SnapResponseWithInterfaceStruct: import("@metamask/superstruct").Struct<{ id: string; response: { result: import("@metamask/snaps-sdk").Json; } | { error: import("@metamask/snaps-sdk").Json; }; notifications: { id: string; message: string; type: "inApp" | "native"; content?: string | undefined; title?: string | undefined; footerLink?: { href: string; text: string; } | undefined; }[]; tracked: { errors: import("@metamask/snaps-sdk").TrackableError[]; events: { event: string; properties?: Record | undefined; sensitiveProperties?: Record | undefined; }[]; traces: { name: string; id?: string | undefined; data?: Record | undefined; parentContext?: import("@metamask/snaps-sdk").Json | undefined; startTime?: number | undefined; tags?: Record | undefined; }[]; }; getInterface: Function; }, { getInterface: import("@metamask/superstruct").Struct; id: import("@metamask/superstruct").Struct; response: import("@metamask/superstruct").Struct<{ result: import("@metamask/snaps-sdk").Json; } | { error: import("@metamask/snaps-sdk").Json; }, null>; notifications: import("@metamask/superstruct").Struct<{ id: string; message: string; type: "inApp" | "native"; content?: string | undefined; title?: string | undefined; footerLink?: { href: string; text: string; } | undefined; }[], import("@metamask/superstruct").Struct<{ id: string; message: string; type: "inApp" | "native"; content?: string | undefined; title?: string | undefined; footerLink?: { href: string; text: string; } | undefined; }, { id: import("@metamask/superstruct").Struct; message: import("@metamask/superstruct").Struct; type: import("@metamask/superstruct").Struct<"inApp" | "native", null>; title: import("@metamask/superstruct").Struct; content: import("@metamask/superstruct").Struct; footerLink: import("@metamask/superstruct").Struct<{ href: string; text: string; } | undefined, { href: import("@metamask/superstruct").Struct; text: import("@metamask/superstruct").Struct; }>; }>>; tracked: import("@metamask/superstruct").Struct<{ errors: import("@metamask/snaps-sdk").TrackableError[]; events: { event: string; properties?: Record | undefined; sensitiveProperties?: Record | undefined; }[]; traces: { name: string; id?: string | undefined; data?: Record | undefined; parentContext?: import("@metamask/snaps-sdk").Json | undefined; startTime?: number | undefined; tags?: Record | undefined; }[]; }, { errors: import("@metamask/superstruct").Struct>; events: import("@metamask/superstruct").Struct<{ event: string; properties?: Record | undefined; sensitiveProperties?: Record | undefined; }[], import("@metamask/superstruct").Struct<{ event: string; properties?: Record | undefined; sensitiveProperties?: Record | undefined; }, { event: import("@metamask/superstruct").Struct; properties: import("@metamask/superstruct").Struct | undefined, null>; sensitiveProperties: import("@metamask/superstruct").Struct | undefined, null>; }>>; traces: import("@metamask/superstruct").Struct<{ name: string; id?: string | undefined; data?: Record | undefined; parentContext?: import("@metamask/snaps-sdk").Json | undefined; startTime?: number | undefined; tags?: Record | undefined; }[], import("@metamask/superstruct").Struct<{ name: string; id?: string | undefined; data?: Record | undefined; parentContext?: import("@metamask/snaps-sdk").Json | undefined; startTime?: number | undefined; tags?: Record | undefined; }, { id: import("@metamask/superstruct").Struct; name: import("@metamask/superstruct").Struct; parentContext: import("@metamask/superstruct").Struct; startTime: import("@metamask/superstruct").Struct; data: import("@metamask/superstruct").Struct | undefined, null>; tags: import("@metamask/superstruct").Struct | undefined, null>; }>>; }>; }>; export declare const SnapResponseStruct: import("@metamask/superstruct").Struct<{ id: string; response: { result: import("@metamask/snaps-sdk").Json; } | { error: import("@metamask/snaps-sdk").Json; }; notifications: { id: string; message: string; type: "inApp" | "native"; content?: string | undefined; title?: string | undefined; footerLink?: { href: string; text: string; } | undefined; }[]; tracked: { errors: import("@metamask/snaps-sdk").TrackableError[]; events: { event: string; properties?: Record | undefined; sensitiveProperties?: Record | undefined; }[]; traces: { name: string; id?: string | undefined; data?: Record | undefined; parentContext?: import("@metamask/snaps-sdk").Json | undefined; startTime?: number | undefined; tags?: Record | undefined; }[]; }; } | { id: string; response: { result: import("@metamask/snaps-sdk").Json; } | { error: import("@metamask/snaps-sdk").Json; }; notifications: { id: string; message: string; type: "inApp" | "native"; content?: string | undefined; title?: string | undefined; footerLink?: { href: string; text: string; } | undefined; }[]; tracked: { errors: import("@metamask/snaps-sdk").TrackableError[]; events: { event: string; properties?: Record | undefined; sensitiveProperties?: Record | undefined; }[]; traces: { name: string; id?: string | undefined; data?: Record | undefined; parentContext?: import("@metamask/snaps-sdk").Json | undefined; startTime?: number | undefined; tags?: Record | undefined; }[]; }; getInterface: Function; }, null>; /** * Ensure that the actual response contains `getInterface`. * * @param response - The response of the handler. */ export declare function assertIsResponseWithInterface(response: SnapResponse): asserts response is SnapResponseWithInterface; //# sourceMappingURL=structs.d.mts.map