import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js"; import { t as Manager } from "./Manager-CQQ99QOI.js"; import "./Actor-iTq7YY48.js"; //#region src/modules/antifraud/antifraudStateMachine.d.ts declare const antifraudMachine: any; type AntifraudMachine = typeof antifraudMachine; //#endregion //#region src/modules/antifraud/antifraudActor.d.ts type AntifraudActor = ActorRefFrom; //#endregion //#region src/modules/antifraud/antifraudManager.d.ts type AntifraudIdleState = { status: 'idle'; }; type AntifraudProcessingState = { status: 'processing'; }; type AntifraudFinishedState = { status: 'finished'; }; /** * Union of all possible antifraud manager states. * * @example * ```typescript * const state = antifraudManager.getState(); * if (state.status === 'finished') { * console.log('Antifraud check complete'); * } * ``` */ type AntifraudState = AntifraudIdleState | AntifraudProcessingState | AntifraudFinishedState; /** * Creates an antifraud manager for headless or UI-driven usage. * * @example Headless usage * ```typescript * const manager = createAntifraudManager(); * manager.subscribe((state) => console.log(state.status)); * manager.load(); * ``` */ declare function createAntifraudManager(): Manager & { /** * Kicks off the antifraud process. * Transitions from 'idle' to 'processing'. */ load(): void; }; /** * Creates an antifraud manager from a pre-built actor. * Use this when overriding the machine via `.provide()` for custom backends or testing. */ declare function createAntifraudManagerFromActor(actor: AntifraudActor): Manager & { /** * Kicks off the antifraud process. * Transitions from 'idle' to 'processing'. */ load(): void; }; type AntifraudManager = ReturnType; //#endregion export { AntifraudActor as a, createAntifraudManagerFromActor as i, AntifraudState as n, antifraudMachine as o, createAntifraudManager as r, AntifraudManager as t };