/** * Structured logger for WS message-handling and subscription failures, shared * by the provider packages so a malformed frame, a throwing mapper, or a failed * resubscribe never vanishes silently. * * @internal */ export declare const wsLog: { /** * A single frame that could not be parsed as JSON. Expected to recur on a * noisy stream, so logged at `warn` with a truncated payload — never fatal. */ readonly parseFailure: (provider: string, raw: string) => void; /** * A frame parsed but its handler threw (mapper bug, `MarketNotFound`, …). * This is unexpected and must surface; the frame is skipped so one bad * frame does not stall the stream or starve other channels. */ readonly handlerFailure: (provider: string, error: unknown) => void; /** * An `error`-channel frame the server pushed (e.g. a rejected or duplicate * subscription). The frame parsed fine — this is the venue reporting a * problem, not a malformed frame — so surface it at `error` with the * server's own text rather than mislabelling it a parse failure. */ readonly serverError: (provider: string, message: string) => void; /** * A channel's (re)subscribe threw while (re)opening the socket — e.g. an * auth-token fetch rejected after a reconnect. Surfaced at `error`; the * channel is skipped so one failure does not abort the others. */ readonly subscribeFailure: (provider: string, channel: string, error: unknown) => void; /** * A frame item referenced a market id missing from the registry (e.g. * listed after the snapshot). The item is skipped — never the whole frame — * so logged at `warn`. */ readonly unknownMarket: (provider: string, marketId: string) => void; /** * A background market-registry refetch rejected. Unknown-market items keep * being skipped until the next cooldown-gated retry, so logged at `warn`. */ readonly marketRefreshFailure: (provider: string, error: unknown) => void; /** * A consumer listener callback threw during fan-out. Logged and skipped so * one bad listener cannot starve sibling listeners or break socket flow. */ readonly listenerFailure: (provider: string, listenerType: string, error: unknown) => void; }; //# sourceMappingURL=wsLog.d.ts.map