import { default as Web3 } from 'web3'; import { OriginalQuote } from '../type'; import { AnalyticsData, InitDexTrade, InitTrade } from './types'; export declare class Analytics { initialTimestamp: number; data: Partial; firstFailureSessionId: string; timeout: any; setPartner(partner: string): void; setChainId(chainId: number): void; updateAndSend(values?: Partial): Promise; onInitSwap(args: InitTrade): void; onQuoteRequest(): void; onQuoteSuccess(quoteMillis: number, quoteResponse: OriginalQuote): void; onQuoteFailed(error: string, quoteMillis: number, quoteResponse?: OriginalQuote): void; onApprovedBeforeTheTrade(): void; onApprovalRequest(): void; onApprovalSuccess(time: number): void; onApprovalFailed(error: string, time: number): void; onSignatureRequest(): void; onWrapRequest(): void; onWrapSuccess(time: number): void; onWrapFailed(error: string, time: number): void; onSignatureSuccess(signature: string, time: number): void; onSignatureFailed(error: string, time: number): void; onSwapRequest(): void; onSwapSuccess(txHash: string, time: number): void; onSwapFailed(error: string, time: number): void; clearState(): void; onClobOnChainSwapSuccess(): Promise; onNotClobTrade(message: string): void; onClobFailure(): void; } declare function onDexSwapRequest(): void; declare function onDexSwapSuccess(web3: Web3, dexSwapTxHash?: string): Promise; declare function onDexSwapFailed(dexSwapError: string): void; export declare const analytics: { onSwapRequest: typeof onDexSwapRequest; onSwapSuccess: typeof onDexSwapSuccess; onSwapFailed: typeof onDexSwapFailed; initSwap: (args: InitDexTrade) => void; }; export declare const swapAnalytics: Analytics; export {};