import { type RecipeConfiguration } from '../../../common'; import type { FrankieApiClient } from '../../../frankie-client'; import { IDVClient } from '../../../frankie-client/clients/IDVClient'; import type { IDVEventHub } from '../../definition.types'; import type { Options } from './iframeUtils/defineIframeIDVWrapper'; import type { Dictionary } from '../../../../types/index.js'; /** * Helper that initialises a session with the IDV api * @param options Options object * @param options.eventHub eventHub to emit events to * @param options.frankieClient authenticated frankie client * @returns A promise of { idvClient, entityId, vendorParameters } * @throws Error if the session data could not be loaded * @emits "session_data_generated" with the session data * @emits "session_data_failed_loading", when session generation fails **/ export declare function initialiseIDVSession>(options: CreateIDVSessionOptions, recipeComplete?: RecipeConfiguration): Promise<{ vendorParameters: VendorParameters; idvClient: IDVClient; entityId: string; token: string; }>; export type CreateIDVSessionOptions = { vendor?: string; products?: Array; localEventHub: IDVEventHub; frankieClient: FrankieApiClient; relayState?: string; wrapperOptions?: Options; }; //# sourceMappingURL=initialiseSession.d.ts.map