import * as anchor from "@coral-xyz/anchor"; import { PublicKey } from "@solana/web3.js"; import { Command } from "commander"; import { z } from "zod"; import { RevertOptions } from "../types/contracts.types"; export declare const baseSolanaOptionsSchema: z.ZodObject<{ abortAddress: z.ZodString; callOnRevert: z.ZodDefault; chainId: z.ZodString; mnemonic: z.ZodOptional; name: z.ZodOptional; onRevertGasLimit: z.ZodString; privateKey: z.ZodOptional; receiver: z.ZodString; revertAddress: z.ZodOptional; revertMessage: z.ZodString; }, "strip", z.ZodTypeAny, { receiver: string; chainId: string; callOnRevert: boolean; abortAddress: string; revertMessage: string; onRevertGasLimit: string; privateKey?: string | undefined; mnemonic?: string | undefined; name?: string | undefined; revertAddress?: string | undefined; }, { receiver: string; chainId: string; abortAddress: string; revertMessage: string; onRevertGasLimit: string; privateKey?: string | undefined; mnemonic?: string | undefined; name?: string | undefined; revertAddress?: string | undefined; callOnRevert?: boolean | undefined; }>; export declare const solanaDepositOptionsSchema: z.ZodObject<{ abortAddress: z.ZodString; callOnRevert: z.ZodDefault; chainId: z.ZodString; mnemonic: z.ZodOptional; name: z.ZodOptional; onRevertGasLimit: z.ZodString; privateKey: z.ZodOptional; receiver: z.ZodString; revertAddress: z.ZodOptional; revertMessage: z.ZodString; } & { amount: z.ZodString; mint: z.ZodOptional; }, "strip", z.ZodTypeAny, { receiver: string; chainId: string; callOnRevert: boolean; abortAddress: string; revertMessage: string; onRevertGasLimit: string; amount: string; privateKey?: string | undefined; mnemonic?: string | undefined; name?: string | undefined; revertAddress?: string | undefined; mint?: string | undefined; }, { receiver: string; chainId: string; abortAddress: string; revertMessage: string; onRevertGasLimit: string; amount: string; privateKey?: string | undefined; mnemonic?: string | undefined; name?: string | undefined; revertAddress?: string | undefined; callOnRevert?: boolean | undefined; mint?: string | undefined; }>; export declare const solanaDepositAndCallOptionsSchema: z.ZodEffects; chainId: z.ZodString; mnemonic: z.ZodOptional; name: z.ZodOptional; onRevertGasLimit: z.ZodString; privateKey: z.ZodOptional; receiver: z.ZodString; revertAddress: z.ZodOptional; revertMessage: z.ZodString; } & { amount: z.ZodString; mint: z.ZodOptional; types: z.ZodArray; values: z.ZodArray; }, "strip", z.ZodTypeAny, { values: string[]; receiver: string; chainId: string; callOnRevert: boolean; abortAddress: string; revertMessage: string; onRevertGasLimit: string; amount: string; types: string[]; privateKey?: string | undefined; mnemonic?: string | undefined; name?: string | undefined; revertAddress?: string | undefined; mint?: string | undefined; }, { values: string[]; receiver: string; chainId: string; abortAddress: string; revertMessage: string; onRevertGasLimit: string; amount: string; types: string[]; privateKey?: string | undefined; mnemonic?: string | undefined; name?: string | undefined; revertAddress?: string | undefined; callOnRevert?: boolean | undefined; mint?: string | undefined; }>, { values: string[]; receiver: string; chainId: string; callOnRevert: boolean; abortAddress: string; revertMessage: string; onRevertGasLimit: string; amount: string; types: string[]; privateKey?: string | undefined; mnemonic?: string | undefined; name?: string | undefined; revertAddress?: string | undefined; mint?: string | undefined; }, { values: string[]; receiver: string; chainId: string; abortAddress: string; revertMessage: string; onRevertGasLimit: string; amount: string; types: string[]; privateKey?: string | undefined; mnemonic?: string | undefined; name?: string | undefined; revertAddress?: string | undefined; callOnRevert?: boolean | undefined; mint?: string | undefined; }>; export declare const solanaCallOptionsSchema: z.ZodEffects; chainId: z.ZodString; mnemonic: z.ZodOptional; name: z.ZodOptional; onRevertGasLimit: z.ZodString; privateKey: z.ZodOptional; receiver: z.ZodString; revertAddress: z.ZodOptional; revertMessage: z.ZodString; } & { types: z.ZodArray; values: z.ZodArray; }, "strip", z.ZodTypeAny, { values: string[]; receiver: string; chainId: string; callOnRevert: boolean; abortAddress: string; revertMessage: string; onRevertGasLimit: string; types: string[]; privateKey?: string | undefined; mnemonic?: string | undefined; name?: string | undefined; revertAddress?: string | undefined; }, { values: string[]; receiver: string; chainId: string; abortAddress: string; revertMessage: string; onRevertGasLimit: string; types: string[]; privateKey?: string | undefined; mnemonic?: string | undefined; name?: string | undefined; revertAddress?: string | undefined; callOnRevert?: boolean | undefined; }>, { values: string[]; receiver: string; chainId: string; callOnRevert: boolean; abortAddress: string; revertMessage: string; onRevertGasLimit: string; types: string[]; privateKey?: string | undefined; mnemonic?: string | undefined; name?: string | undefined; revertAddress?: string | undefined; }, { values: string[]; receiver: string; chainId: string; abortAddress: string; revertMessage: string; onRevertGasLimit: string; types: string[]; privateKey?: string | undefined; mnemonic?: string | undefined; name?: string | undefined; revertAddress?: string | undefined; callOnRevert?: boolean | undefined; }>; export declare const keypairFromMnemonic: (mnemonic: string) => Promise; export declare const keypairFromPrivateKey: (privateKey: string) => anchor.web3.Keypair; export declare const getKeypair: ({ name, mnemonic, privateKey, }: { mnemonic: string | undefined; name: string | undefined; privateKey: string | undefined; }) => Promise; export declare const getAPI: (network: string) => string; export declare const getAPIbyChainId: (chainId: string) => string; export declare const getSPLToken: (provider: anchor.AnchorProvider, mint: string, amount: string) => Promise<{ decimals: number; from: anchor.web3.PublicKey; }>; export declare const isSOLBalanceSufficient: (provider: anchor.AnchorProvider, amount: string) => Promise; export declare const createSolanaCommandWithCommonOptions: (name: string) => Command; interface SolanaRevertOptions { abortAddress: Uint8Array; callOnRevert: boolean; onRevertGasLimit: anchor.BN; revertAddress: PublicKey; revertMessage: Buffer; } export declare const prepareRevertOptions: (options: z.infer) => RevertOptions; export declare const createRevertOptions: (options: RevertOptions, publicKey: anchor.web3.PublicKey) => { abortAddress: Uint8Array; callOnRevert: boolean; onRevertGasLimit: anchor.BN; revertAddress: anchor.web3.PublicKey; revertMessage: Buffer; }; export declare const confirmSolanaTx: (options: { amount?: string; api: string; message?: string; mint?: string; receiver: string; revertOptions: SolanaRevertOptions; sender: string; }) => Promise; export declare const createSolanaGatewayProgram: (chainId: string, signer: anchor.web3.Keypair) => { gatewayProgram: anchor.Program; provider: anchor.AnchorProvider; }; export {};