import { PythPrice } from "../pyth/types.js"; import { MarketState, PoolType } from "../types.js"; /** * PriceMonitor - Monitors Pyth price and calculates outcomes * * Responsibilities: * - Polls Pyth price at configured interval * - Calculates outcomes for both High and Low pools * - Detects outcome changes and triggers callbacks */ export declare class PriceMonitor { private priceService; private checkInterval; private verbose; private timer; private isRunning; private lastPrice; constructor(hermesUrl: string, checkInterval?: number, verbose?: boolean); /** * Start price monitoring * * @param market - Current market state * @param onOutcomeChange - Callback when outcome changes * @param onPriceUpdate - Callback on each price update */ start(market: MarketState, onOutcomeChange: (poolType: PoolType, newOutcome: number, priceInCents: number) => Promise, onPriceUpdate?: (price: PythPrice) => void): void; /** * Stop price monitoring */ stop(): void; /** * Get last price update */ getLastPrice(): PythPrice | null; private log; } //# sourceMappingURL=PriceMonitor.d.ts.map