import { z } from 'zod'; import { ComputerAppSchema, ComputerWindowSchema } from '@xopcai/computer-control-contract'; import type { EndpointToolRuntime } from '../endpoint-tools/runtime.js'; import type { Config } from '../config/schema.js'; import { type ComputerServiceLimits } from './model-policy.js'; import { ComputerDiagnosticSchema } from './errors.js'; import { type ComputerVerification } from './task-state.js'; declare const Reply: z.ZodObject<{ status: z.ZodEnum<{ ready: "ready"; running: "running"; paused: "paused"; stopped: "stopped"; pending_authorization: "pending_authorization"; pending_action: "pending_action"; }>; sessionId: z.ZodString; brokerEpoch: z.ZodString; generation: z.ZodNumber; grantId: z.ZodOptional; observation: z.ZodOptional; capturedAt: z.ZodNumber; imageWidth: z.ZodNumber; imageHeight: z.ZodNumber; summary: z.ZodString; focusedEditableRef: z.ZodOptional; stateDigest: z.ZodString; }, z.core.$strict>>; errorCode: z.ZodOptional; diagnostic: z.ZodOptional; diagnosticId: z.ZodUUID; validationReason: z.ZodOptional>; httpStatus: z.ZodOptional; requestId: z.ZodOptional; serviceErrorCode: z.ZodOptional>; }, z.core.$strict>>; apps: z.ZodOptional>>; windows: z.ZodOptional>>; receipt: z.ZodOptional; outcome: z.ZodEnum<{ unknown: "unknown"; applied: "applied"; notApplied: "notApplied"; }>; verification: z.ZodEnum<{ artifact: "artifact"; none: "none"; semantic: "semantic"; visual: "visual"; }>; errorCode: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strict>; export declare const ComputerUseInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ op: z.ZodLiteral<"discover">; query: z.ZodString; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"open">; appRef: z.ZodString; windowRef: z.ZodOptional; mode: z.ZodEnum<{ observe: "observe"; control: "control"; }>; prepare: z.ZodBoolean; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"observe">; question: z.ZodOptional; expect: z.ZodOptional; text: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"field">; label: z.ZodString; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"selected">; label: z.ZodString; }, z.core.$strict>], "kind">>; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"step">; goal: z.ZodString; expect: z.ZodOptional; text: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"field">; label: z.ZodString; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"selected">; label: z.ZodString; }, z.core.$strict>], "kind">>; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"close">; }, z.core.$strict>], "op">; export type ComputerUseInput = z.infer; export interface ComputerPublicResult { status: string; sessionId: string; pending?: boolean; summary?: string; receipt?: z.infer['receipt']; claimedSuccess?: boolean; verified?: boolean; verification?: ComputerVerification; budget?: { actionsRemaining: number; modelRequestsRemaining: number; expiresAt: number; serviceLimits?: ComputerServiceLimits; }; handoff?: { recentActions: Array<{ goal: string; action: string; dispatch: string; outcome: string; verification?: ComputerVerification; }>; }; observation?: { id: string; width: number; height: number; }; errorCode?: string; diagnostic?: z.infer; nextAction?: string; apps?: z.infer[]; windows?: z.infer[]; } export declare class ComputerRuntime { private readonly endpoints; private readonly getConfig; private readonly getTurnEndpoint?; private readonly sessions; private readonly operations; constructor(endpoints: EndpointToolRuntime, getConfig: () => Config, getTurnEndpoint?: (owner: string) => string | undefined); execute(owner: string, input: ComputerUseInput, signal?: AbortSignal): Promise; private executeInput; private dispatchAction; private budget; private present; private resolveEndpoint; private send; private forget; close(owner: string): Promise; shutdown(): Promise; } export {};