import { Context } from '@deepseek-ai/cordis'; import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol'; import { z as json } from 'zod'; import type { DualModelView, DualModelSaveRequest, DualModelCreateRequest, DualModelCreateResult } from './dual-model-types.ts'; export declare const DUAL_MODEL_NAMESPACE = "github-copilot-dual-model"; export declare const DUAL_MODEL_POLICY_EVENT = "github-copilot/dual-model-policy"; export declare const DUAL_MODEL_PROJECTION = "githubCopilotDualModelPolicy"; export declare const DUAL_MODEL_EXECUTE_TOOL = "copilot_execute"; declare const PolicyJson: json.ZodObject<{ version: json.ZodLiteral<1>; rootSessionId: json.ZodString; requestId: json.ZodString; workspaceId: json.ZodString; settingsRevision: json.ZodNumber; cwd: json.ZodString; agentPreset: json.ZodString; provider: json.ZodLiteral<"github-copilot-preview">; plannerModel: json.ZodString; executorModel: json.ZodString; executorTools: json.ZodArray; plannerTools: json.ZodArray; }, json.core.$strict>; type Policy = json.infer; interface LogEvent { readonly type: string; readonly seq: number; readonly data: unknown; readonly ignorable?: true; } interface Header { readonly id: string; readonly cwd?: string; readonly parentSession?: string; readonly origin?: string; readonly agentPreset?: string; } interface ChildDescriptor { readonly version: 3; readonly mode: 'continuable'; readonly provider: 'spawn'; readonly agentProvider: string; readonly agentModel: string; } interface Projection { readonly id: string; readonly parentId: string | null; readonly origin: string | null; readonly inherited: number; readonly policy: Policy | null; readonly child: ChildDescriptor | null; readonly invalid: boolean; } /** A root policy is authoritative only in its own suffix, never in a fork seed. */ export declare const dualModelProjection: { key: string; stateVersion: number; stateSchema: json.ZodObject<{ id: json.ZodString; parentId: json.ZodNullable; origin: json.ZodNullable; inherited: json.ZodNumber; policy: json.ZodNullable; rootSessionId: json.ZodString; requestId: json.ZodString; workspaceId: json.ZodString; settingsRevision: json.ZodNumber; cwd: json.ZodString; agentPreset: json.ZodString; provider: json.ZodLiteral<"github-copilot-preview">; plannerModel: json.ZodString; executorModel: json.ZodString; executorTools: json.ZodArray; plannerTools: json.ZodArray; }, json.core.$strict>>; child: json.ZodNullable; mode: json.ZodLiteral<"continuable">; provider: json.ZodLiteral<"spawn">; agentProvider: json.ZodString; agentModel: json.ZodString; }, json.core.$strict>>; invalid: json.ZodBoolean; }, json.core.$strip>; init: (header: Header, inherited?: number) => Projection; apply: (state: Projection, event: LogEvent) => Projection; }; export declare function dualModelSessionId(requestId: string): string; declare module '@deepseek-ai/cordis' { interface Context { githubCopilotDualModel: GitHubCopilotDualModel; } } /** Always mountable; retired entry points coexist with retained policy enforcement. */ export default class GitHubCopilotDualModel extends TypertRemoteService { private readonly owner; private readonly lifetime; private readonly creates; private readonly overlays; private settingsReady; private projectionReady; private registrationFailed; constructor(ctx: Context); private capabilities; private requireCapabilities; private configuration; view(): Promise; save(input: DualModelSaveRequest): Promise; private saveOnce; create(input: DualModelCreateRequest): Promise; private createOnce; private workspace; private assertModels; private projection; private restore; private install; } export {}; //# sourceMappingURL=dual-model-host.d.ts.map