import { type ReactElement, type ReactNode } from "react"; /** * Represents a structured runtime warning surfaced by Frenchfry React bindings. */ export type FrenchfryWarning = { code: "gen_ui_parse_failed" | "outlet_not_found"; message: string; outlet?: string; }; type OutletListener = (elements: ReactElement[] | null) => void; type FrenchfryUiBus = { publishOutlet: (outlet: string, elements: ReactElement[]) => void; registerOutlet: (outlet: string, listener: OutletListener) => () => void; warn: (warning: FrenchfryWarning) => void; }; /** * Represents provider props for global Frenchfry UI wiring. */ export type FrenchfryProviderProps = { children: ReactNode; onWarning?: (warning: FrenchfryWarning) => void; }; /** * React context carrying the outlet registration and publishing bus. */ export declare const FrenchfryUiContext: import("react").Context; /** * Provides a global outlet bus that connects `VoiceAgent`/`useGenUi` to `VoiceUiOutlet` instances. * * @param props Provider props. * @returns Provider element. */ export declare const FrenchfryProvider: (props: FrenchfryProviderProps) => ReactElement; export {}; //# sourceMappingURL=frenchfry-provider.d.ts.map