import { JourneySnapshot } from '@fanfare-io/fanfare-sdk-core/experiences'; /** * The handler set to spread onto your drop journey widget. Today this is a single * `onJourneyChange`; it is returned as an object so the wiring is a stable * `{...bridge}` spread that can carry additional widget handlers in future without * an integrator-visible change. */ export interface FanfareWidgetBridge { /** * Spread onto ``. Called with the * latest `JourneySnapshot` on every journey update; it reports the snapshot to * the provider and records the grant once the journey is granted. */ onJourneyChange(snapshot: JourneySnapshot): void; } export declare function useFanfareWidgetBridge(): FanfareWidgetBridge;