import { Connection, PublicKey, Keypair, Transaction } from "@solana/web3.js"; import * as anchor from "@coral-xyz/anchor"; import { Agent } from "../../agent/Agents"; import { AsciiArtParams, ConversionParams } from "./type/iq.type"; import { Buffer } from "buffer"; export declare class IQOperation { static PROGRAM_ID: PublicKey; static IQ_HOST: string; static GEN_ART_API: string; static COMPRESS_API: string; static contractChunkSize: number; getImageBufferFromUrl(imageUrl: string): Promise<{ height: number; bufferImage: Buffer; }>; convertImageToASCII(imageBuffer: Buffer): Promise; _getChunk(message: string, chunkSize: number): Promise; compressImageBuffer(imageBuffer: { result: string; width: number; }): Promise<{ chunkList: { text_list: string[] | null; method: any; }[]; chunkSize: number; merkleRoot: any; }>; splitAndHashBuffer(buffer: Buffer, chunkSize?: number): Promise<{ chunks: Buffer[]; hashes: string[]; }>; getPDA(userKey: string): Promise; getDBPDA(userKey: string): Promise; verifyUserGotInitialized(payer: Keypair): Promise<{ dbPDA: string; userPDA: string; } | undefined>; createInitTransactionOnServer(userKeyString: string, agent: Agent): Promise; pda_make(connection: Connection, payer: anchor.Wallet, agent: Agent): Promise; userInitialize(connection: Connection, payer: anchor.Wallet, agent: Agent): Promise; static sleep(ms: number): Promise; sendCode(chunks: Buffer[], codeAccount: PublicKey, asciiBuffer: Buffer, payer: Keypair, connection: Connection, PROGRAM_ID: PublicKey): Promise; dbCodeIn(connection: Connection, payer: Keypair, handle: string, datatype: string, offset: string, dbAccount: PublicKey): Promise; fetchAsciiFromChain(connection: Connection, dbAccountPDA: PublicKey, codeAccountPDA: PublicKey): Promise; handleBufferImage(imageUrl: string, fontSize?: number, density?: number): Promise<{ result: string; width: number; }>; static generateImage(params: ConversionParams): Promise; static generateAsciiArt(params: AsciiArtParams): Promise<{ result: string; width: number; }>; private static mapBrightnessToChar; static compressText(originalText: string): Promise; static decompressText(compressedText: string, method: string): Promise; private static calculateBrightness; private getMerkleRootFromServer; createSendTransactionOnServer(userKeyString: string, code: any, before_tx: any, method: any, decode_break: any, agent: Agent): Promise; _translate_transaction(data: any, agent: Agent): Promise; makeAllTransactions(userKeyStr: string, chunkSize: number, chunkList: { text_list: string[] | null; method: any; }[], handle: string | undefined, type: "image" | "text" | undefined, offset: any, agent: Agent): Promise; createDbCodeTransactionOnserver(userKeyString: string, handle: string, tail_tx: any, type: string, offset: any, agent: Agent): Promise; getByteLength(text: string): Promise; emojiToText(message: string): Promise; _getChunk_ForText(message: string, chunkSize: number): Promise; _send_transaction(connection: Connection, transaction: Transaction, agent: Agent): Promise; textCodeIn(userKeyStr: string, text: string, agent: Agent): Promise; makeTextTransactions(userKeyStr: string, chunkSize: number, chunkList: any, handle: string | undefined, type: "image" | "text" | undefined, offset: any, agent: Agent): Promise; AstralChef(imageUrl: string, fontSize: number, density: number, agent: Agent, type: string): Promise; } //# sourceMappingURL=iq.operation.d.ts.map