import type { SessionSearchRoute } from "../lib/session-search-route.js"; import { type SessionCreationHandoff } from "../app-context.js"; import { type SessionRoutePlacement } from "../lib/session-route-placement.js"; import type { InitialComposerDraft } from "../../hooks/use-composer.js"; import { type ComposerLaunchSearch } from "../lib/composer-launch.js"; import type { SessionRealtimeModel } from "@opengeni/sdk"; import type { SessionEvent } from "../types.js"; export declare function SessionRoute({ workspaceId, sessionId, launch, realtimeAutostartModel, searchTarget, placement, onEvent, messageContext, creationHandoff: givenCreationHandoff, initialDraft, onNewSession, onRealtimeAutostartConsumed, }: { workspaceId: string; sessionId: string; launch?: ComposerLaunchSearch | undefined; realtimeAutostartModel?: SessionRealtimeModel | undefined; searchTarget?: SessionSearchRoute | undefined; /** * `panel`: this chat sits beside another view (the Site view) in a narrow * panel, so it uses narrower gutters and is not remembered as the last * session route. Whatever else differs is the host's: it turns off the * session panel with `SessionUiFeaturesOff` and passes the callbacks below. */ placement?: SessionRoutePlacement | undefined; /** Each event newer than the loaded history, in order. */ onEvent?: ((event: SessionEvent) => void) | undefined; /** The host view's per-message model context, read at send time. */ messageContext?: (() => string | undefined) | undefined; /** A conversation the host view just created, shown at once with its first prompt. */ creationHandoff?: SessionCreationHandoff | null | undefined; /** What the person typed in the host view's new-chat composer while it was created. */ initialDraft?: InitialComposerDraft | undefined; /** Start a new chat; defaults to the new-chat page. */ onNewSession?: (() => void) | undefined; /** The voice call a new chat asked for has started; defaults to dropping it from the address. */ onRealtimeAutostartConsumed?: (() => void) | undefined; }): import("react").JSX.Element;