import type { SessionId } from '@deepseek-ai/dsh-client-runtime/client'; import type { ConvViewProps } from '@deepseek-ai/dsh-client-ui-conversation/client'; import type { InjectFace, PropsLocale } from '@deepseek-ai/dsh-client-ui-slots'; import { NS } from './locales.ts'; /** Narrow business callbacks supplied by the registration closure. */ export interface BranchesViewInjected { /** Select an ordinary session or catalog-addressed subagent. */ openSession: (sessionId: SessionId) => boolean; /** Fork this view's source session at a completed-turn anchor and open the child. */ forkAt: (seq: number) => Promise; /** Page the current session's raw history window backwards. */ loadOlder: () => Promise; } /** Full props of the session-scoped Branches conversation view. */ export type BranchesViewProps = ConvViewProps & PropsLocale & InjectFace; /** * Read-only lineage projection plus explicit completed-turn fork controls. * All mutation goes through the existing DSH fork API; the component never * writes session events, parent pointers, or workspace state. */ export declare function BranchesView({ sessionId, useSession, useSessions, openSession, forkAt, loadOlder, t, }: BranchesViewProps): import("react").JSX.Element;