/** * Stream Stats Store * Svelte 5 store for streaming statistics */ import type { IngestStats } from "@livepeer-frameworks/streamcrafter-core"; export interface StreamStatsState { stats: IngestStats | null; isPolling: boolean; } export interface StreamStatsStore { subscribe: (fn: (state: StreamStatsState) => void) => () => void; startPolling: () => void; stopPolling: () => void; fetchStats: () => Promise; destroy: () => void; } export declare function createStreamStatsStore(getStats: () => Promise, options?: { interval?: number; autoStart?: boolean; }): StreamStatsStore;