import { type CollectionNftsRequest, type CollectionRequest, type CollectionsRequest, type NftRequest, type NftsRequest, type OwnerNftsRequest, type TransactionRequest, type TransactionsRequest } from '../index'; export type TonApiAccountAddress = { address: string; name?: string; is_scam: boolean; icon?: string; }; export type TonApiAccountStatus = 'nonexist' | 'uninit' | 'active' | 'frozen'; export type TonApiTransactionType = 'TransOrd' | 'TransTickTock' | 'TransSplitPrepare' | 'TransSplitInstall' | 'TransMergePrepare' | 'TransMergeInstall' | 'TransStorage'; export type TonApiMessage = { created_lt: number; ihr_disabled: boolean; bounce: boolean; bounced: boolean; value: number; fwd_fee: number; ihr_fee: number; destination?: TonApiAccountAddress; source?: TonApiAccountAddress; import_fee: number; created_at: number; op_code?: string; init?: { boc: string; }; raw_body?: string; decoded_op_name?: string; decoded_body: Record; }; export type TonApiCollection> = { address: string; next_item_index: number; owner?: TonApiAccountAddress; raw_collection_content: string; metadata?: Meta; }; export type TonApiCollections = { nft_collections: Array>; }; export type TonApiNftItem> = { address: string; index: number; owner?: TonApiAccountAddress; collection?: { address: string; name: string; }; verified: boolean; metadata?: Meta; sale?: { address: string; market: TonApiAccountAddress; owner?: TonApiAccountAddress; price: { value: string; token_name: string; }; }; previews?: Array<{ resolution: string; url: string; }>; dns?: string; approved_by?: any[]; }; export type TonApiNftItems = { nft_items: Array>; }; export type TonApiTransactions = { transactions: TonApiTransaction[]; }; export type TonApiTransaction = { hash: string; lt: number; account: TonApiAccountAddress; success: boolean; utime: number; orig_status: TonApiAccountStatus; end_status: TonApiAccountStatus; total_fees: number; transaction_type: TonApiTransactionType; state_update_old: string; state_update_new: string; in_msg?: TonApiMessage; out_msgs: TonApiMessage[]; block: string; prev_trans_hash?: string; prev_trans_lt?: number; compute_phase?: { skipped: boolean; skip_reason?: boolean; success?: boolean; gas_fees?: number; gas_used?: number; vm_steps?: number; exit_code?: number; }; storage_phase?: { fees_collected: number; fees_due?: number; status_change: 'acst_unchanged' | 'acst_frozen' | 'acst_deleted'; }; credit_phase?: { fees_collected: number; credit: number; }; action_phase?: { success: boolean; total_actions: number; skipped_actions: number; fwd_fees: number; total_fees: number; }; bounce_phase?: 'TrPhaseBounceNegfunds' | 'TrPhaseBounceNofunds' | 'TrPhaseBounceOk'; aborted: boolean; destroyed: boolean; }; export type TonApiResponse = Data & { error: string; }; export declare class TonApi { private readonly url; constructor(url?: string); collection(request: CollectionRequest): Promise>>; collections(request: CollectionsRequest): Promise>>; collectionNfts(request: CollectionNftsRequest): Promise>>; ownerNfts(request: OwnerNftsRequest): Promise>>; nfts(request: NftsRequest): Promise>>; nft(request: NftRequest): Promise>>; transactions(request: TransactionsRequest): Promise>; transaction(request: TransactionRequest): Promise>; private request; } //# sourceMappingURL=index.d.ts.map