import { t as Manager } from "./Manager-CQQ99QOI.js"; //#region src/modules/watchlist-for-business/watchlistForBusinessManager.d.ts /** Waiting for `load()` to be called. */ type WatchlistForBusinessIdleState = { status: 'idle'; }; /** Form is ready — use `setCountry()`, `setBusinessName()`, and `submit()`. */ type WatchlistForBusinessFormState = { status: 'form'; country: string; businessName: string; isValid: boolean; }; /** API request in flight. */ type WatchlistForBusinessSubmittingState = { status: 'submitting'; }; /** * API succeeded — success screen visible for ~3 s before transitioning * to `finished`. */ type WatchlistForBusinessSuccessState = { status: 'success'; }; /** Module complete. Fires regardless of API outcome (fire-and-forget). */ type WatchlistForBusinessFinishedState = { status: 'finished'; }; /** * Discriminated union of all possible watchlist-for-business manager states. */ type WatchlistForBusinessState = WatchlistForBusinessIdleState | WatchlistForBusinessFormState | WatchlistForBusinessSubmittingState | WatchlistForBusinessSuccessState | WatchlistForBusinessFinishedState; /** * Creates a watchlist-for-business manager for headless or UI-driven usage. * * On API error the module completes silently (fire-and-forget). * * @example Headless usage * ```typescript * import { createWatchlistForBusinessManager } from '@incodetech/core/watchlist-for-business'; * * const manager = createWatchlistForBusinessManager(); * manager.subscribe((state) => { * if (state.status === 'finished') console.log('Done'); * }); * manager.load(); * manager.setCountry('MX'); * manager.setBusinessName('Acme Corp'); * manager.submit(); * manager.stop(); * ``` */ declare function createWatchlistForBusinessManager(): Manager & { /** Transitions from `idle` to the form. Must be called before any other method. */ load(): void; /** Updates the selected country code (ISO 3166-1 alpha-2). */ setCountry(country: string): void; /** Updates the business name field and recomputes validity. */ setBusinessName(value: string): void; /** Submits the form. Only transitions when `isValid` is true. */ submit(): void; }; type WatchlistForBusinessManager = ReturnType; //#endregion //#region src/modules/watchlist-for-business/watchlistForBusinessStateMachine.d.ts declare const watchlistForBusinessMachine: any; //#endregion //#region src/modules/watchlist-for-business/types.d.ts /** * Configuration for the watchlist-for-business module. * * No server-side configuration is required — the module collects * country and business name from the user and submits them to the * business watchlist endpoint. */ type WatchlistForBusinessConfig = Record; //#endregion export { type WatchlistForBusinessConfig, type WatchlistForBusinessFinishedState, type WatchlistForBusinessFormState, type WatchlistForBusinessManager, type WatchlistForBusinessState, createWatchlistForBusinessManager, watchlistForBusinessMachine };