import type { GuardianAlert, GuardianPriceView, GuardianTargetState, GuardianThresholds } from './types.js'; export type GuardianAlertHandler = (alert: GuardianAlert) => void; export declare class GuardianRiskEngine { private readonly prices; private readonly onAlert; private readonly thresholds; /** address:coin:threshold → state */ private liqState; /** address → state */ private marginState; /** address:coin → alerted */ private tpslState; /** address:oid → last fired */ private staleOrderState; /** address:coin → { since, firedAt } */ private fundingState; private evaluations; constructor(prices: GuardianPriceView, onAlert: GuardianAlertHandler, thresholds?: Partial); getStats(): { evaluations: number; }; /** One evaluation pass over the given targets. */ tick(targets: Iterable, now?: number): void; /** Distance = (mark − liqPx) / mark, signed by side. */ private liqDistance; private updateLiqDistance; private evalLiqProximity; private evalMarginUsage; private evalNoTpsl; private evalStaleOrders; private evalFundingBleed; /** Drop per-position rule state when positions close (prevents unbounded growth). */ private gcClosedPositions; } //# sourceMappingURL=rules.d.ts.map