import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol'; import type { Context } from '@deepseek-ai/cordis'; import { z } from 'zod'; export declare const request$schema: z.ZodObject<{ sessionId: z.ZodReadonly>; }, z.core.$strip>; export declare const block$schema: z.ZodObject<{ kind: z.ZodReadonly, z.ZodLiteral<"reasoning">, z.ZodLiteral<"tool-call">, z.ZodLiteral<"tool-result">, z.ZodLiteral<"image">, z.ZodLiteral<"block">]>>; label: z.ZodOptional>; text: z.ZodReadonly; chars: z.ZodReadonly; }, z.core.$strip>; export declare const row$schema: z.ZodObject<{ seq: z.ZodReadonly; type: z.ZodReadonly; text: z.ZodReadonly; chars: z.ZodReadonly; tokens: z.ZodOptional>; blocks: z.ZodReadonly, z.ZodLiteral<"reasoning">, z.ZodLiteral<"tool-call">, z.ZodLiteral<"tool-result">, z.ZodLiteral<"image">, z.ZodLiteral<"block">]>>; label: z.ZodOptional>; text: z.ZodReadonly; chars: z.ZodReadonly; }, z.core.$strip>>>; source: z.ZodOptional>; }, z.core.$strip>; export declare const result$schema: z.ZodReadonly; type: z.ZodReadonly; text: z.ZodReadonly; chars: z.ZodReadonly; tokens: z.ZodOptional>; blocks: z.ZodReadonly, z.ZodLiteral<"reasoning">, z.ZodLiteral<"tool-call">, z.ZodLiteral<"tool-result">, z.ZodLiteral<"image">, z.ZodLiteral<"block">]>>; label: z.ZodOptional>; text: z.ZodReadonly; chars: z.ZodReadonly; }, z.core.$strip>>>; source: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>; export type CtxSurfaceBlock = z.infer; export type CtxSurfaceRow = z.infer; export type CtxSurfaceReadRequest = z.infer; export type CtxSurfaceReadResult = z.infer; /** * 面向浏览器面板的实时 surface 读取器。纯消费者:读取折叠后的 surface 快照, * 绝不修改会话。 */ export declare class CtxSurfaceService extends TypertRemoteService { /** * @param ctx - 携带 sessionQuery 的主机上下文。 */ constructor(ctx: Context); /** * 读取某个会话当前的折叠 surface 行(已移除 shadowed 事件,按模型历史顺序, * 带 seq 标记)。 * @param request - 要检查的会话。 * @returns 折叠后的行,或显式失败。 */ read(request: CtxSurfaceReadRequest): Promise; }