import * as anchor from "@coral-xyz/anchor"; import { ethers } from "ethers"; import { z } from "zod"; export declare const dependencies: { anchor: typeof anchor; ethers: typeof ethers; }; /** * Interface representing a Solana account with public key and isWritable flag */ interface SolanaAccount { isWritable: boolean; publicKey: string; } /** * Zod schema for validating Solana account strings * Format: "publicKey:isWritable" where isWritable is "true" or "false" */ export declare const solanaAccountStringSchema: z.ZodPipeline, string, string>, { isWritableStr: string; pubkey: string; }, string>, z.ZodObject<{ isWritableStr: z.ZodEffects, boolean, "true" | "false">; pubkey: z.ZodEffects; }, "strip", z.ZodTypeAny, { pubkey: string; isWritableStr: boolean; }, { pubkey: string; isWritableStr: "true" | "false"; }>>; /** * Parse a string in format "publicKey:isWritable" into a Solana account object * * @param accountString - String in format "publicKey:isWritable" where isWritable is "true" or "false" * @param index - Optional index for error reporting in array contexts * @returns An object with isWritable boolean and publicKey as hex string * @throws Error if the string format is invalid or the public key is invalid */ export declare const parseSolanaAccount: (accountString: string, index?: number) => SolanaAccount; /** * Parse an array of account strings into Solana account objects * * @param accounts - Array of strings in format "publicKey:isWritable" * @returns Array of Solana account objects */ export declare const parseSolanaAccounts: (accounts: string[]) => SolanaAccount[]; export {};