import { CCTXs, Emitter, PendingNonce, Spinners } from "../types/trackCCTX.types"; export interface TransactionState { cctxs: CCTXs; pendingNonces: PendingNonce[]; pollCount: number; spinners: Spinners; } interface PollTransactionsArgs { api: string; emitter: Emitter | null; hash: string; intervalId?: NodeJS.Timeout; json: boolean; reject: (error: Error) => void; resolve: (cctxs: CCTXs) => void; state: TransactionState; timeoutId?: NodeJS.Timeout | null; timeoutSeconds: number; tss: string; } /** * Update state immutably with type safety */ export declare const updateState: (state: TransactionState, update: Partial) => TransactionState; /** * Validate state structure */ export declare const validateState: (state: TransactionState) => boolean; /** * Main polling function for transaction updates */ export declare const pollTransactions: ({ api, hash, tss, state, emitter, json, timeoutSeconds, resolve, reject, intervalId, timeoutId, }: PollTransactionsArgs) => Promise; export {};