import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js"; import { t as Manager } from "./Manager-CQQ99QOI.js"; import "./Actor-iTq7YY48.js"; //#region src/modules/watchlist/watchlistStateMachine.d.ts type WatchlistResult = 'success' | 'skipped'; declare const watchlistMachine: any; type WatchlistMachine = typeof watchlistMachine; //#endregion //#region src/modules/watchlist/watchlistActor.d.ts type WatchlistActor = ActorRefFrom; //#endregion //#region src/modules/watchlist/watchlistManager.d.ts type WatchlistIdleState = { status: 'idle'; }; type WatchlistProcessingState = { status: 'processing'; }; type WatchlistSuccessState = { status: 'success'; }; type WatchlistFinishedState = { status: 'finished'; result: WatchlistResult; }; /** * Union of all possible global watchlist manager states. * * @example * ```typescript * const state = watchlistManager.getState(); * if (state.status === 'finished') { * console.log('Global watchlist check complete'); * } * ``` */ type WatchlistState = WatchlistIdleState | WatchlistProcessingState | WatchlistSuccessState | WatchlistFinishedState; /** * Creates a global watchlist manager for headless or UI-driven usage. * * @example Headless usage * ```typescript * const manager = createWatchlistManager(); * manager.subscribe((state) => console.log(state.status)); * manager.load(); * ``` */ declare function createWatchlistManager(): Manager & { /** * Kicks off the global watchlist check. * Transitions from 'idle' to 'processing'. */ load(): void; }; /** * Creates a watchlist manager from a pre-built actor. * Use this when overriding the machine via `.provide()` for custom backends or testing. */ declare function createWatchlistManagerFromActor(actor: WatchlistActor): Manager & { /** * Kicks off the global watchlist check. * Transitions from 'idle' to 'processing'. */ load(): void; }; type WatchlistManager = ReturnType; //#endregion export { WatchlistActor as a, createWatchlistManagerFromActor as i, WatchlistState as n, watchlistMachine as o, createWatchlistManager as r, WatchlistManager as t };