import { InitConfig, Environment, FlowEventType, FlowEventCallback, InitFlowInstance } from '../types.js'; /** * Standalone InitFlow class for handling initialization with callbacks */ export declare class InitFlow implements InitFlowInstance { private iframe; private container; private eventListeners; private keepAliveInterval; private messageHandler; private authorizationCode; private config; private partnerName; private environment; private branchOverride?; constructor(config: InitConfig, partnerName: string, environment: Environment, branchOverride?: string); /** * Initialize the init flow by creating and injecting a hidden iframe */ initialize(): Promise; /** * Construct the specific flow URL for initialization */ private constructFlowUrl; /** * Create flow URL using partner name and environment */ private createFlowUrl; /** * Setup event listeners to only handle authentication events */ private setupEventListeners; /** * Emit events to registered listeners */ private emit; /** * Register an event listener */ on(event: 'authenticationSucceeded' | 'authenticationFailed', callback: FlowEventCallback): void; /** * Remove an event listener */ off(event: FlowEventType, callback: FlowEventCallback): void; /** * Close the flow and clean up resources */ close(): void; setupKeepAlive(): void; }