import { type FC } from 'react'; import { type NextUIResolver } from '../../hooks/nextUIResolver.context'; import type { NotFrontComponent } from '../../types'; export interface RenderNotFrontPayload { id: string; display: unknown; } export interface RenderNotFrontProps { payload: RenderNotFrontPayload; userFlow: string; /** * Opt-in: the page id is `userFlow`; a new payload replaces that page in the * store and the tree is reconciled, not remounted, so a V2 piece whose * `responseKey` and component did not change keeps its state and data. A * payload whose `id` is already shown is a no-op. Read on mount: a later * change of the flag is unsupported. */ stablePage?: boolean; /** * Only with `stablePage`: when the value changes after mount, every answer * the renderer holds is dropped and every V2 piece on screen asks again, * once. The first render's value clears nothing. Ignored (with a development * warning) without `stablePage`. */ dataRevision?: number; /** * Only with `stablePage`: the embedder answers the next page. Filters call it * instead of a not-front session, with the entries a session would have been * sent and the key that triggered the change. Resolve: entries and page are * written in one step; reject, or resolve something that is not a payload: * nothing is written. Takes effect only with `stablePage`; without it, it is * ignored (development warning once). */ resolveNextUI?: NextUIResolver; } export declare function extractNotFrontComponents(display: unknown): NotFrontComponent[]; export declare const RenderNotFront: FC; export declare const renderNotFront: FC;