import type { ChatSnapshotView } from './nav-state'; /** Required services: slots (registration) and sessions (turn data). */ export declare const inject: string[]; /** Minimal structural view of the runtime client ctx this plugin consumes. */ interface SessionSnapshotView { chat: ChatSnapshotView; hasMore: boolean; loadingOlder: boolean; } interface SessionFace { getSnapshot(): SessionSnapshotView; subscribe(fn: () => void): () => void; loadOlder(): Promise; projections: { faceOf(key: string): { getSnapshot(): unknown; subscribe(fn: () => void): () => void; }; }; } interface SessionsService { list: { getSnapshot(): { current?: string; }; subscribe(fn: () => void): () => void; }; binding(id: string): { session: SessionFace; } | undefined; } interface SlotsService { inject(name: string, callback: () => (() => void) | void): () => void; register(options: unknown, component: unknown): () => void; } interface ClientContext { sessions: SessionsService; slots: SlotsService; effect(fn: () => (() => void) | void, label?: string): void; } /** Client plugin body. */ export declare function apply(ctx: ClientContext): void; export {};