import { z } from 'zod'; import type { ComputerAction, ComputerObservation, ComputerReceipt } from '@xopcai/computer-control-contract'; import type { ComputerExpectation, ComputerVerification } from './task-state.js'; export declare const ComputerFlowSchema: z.ZodObject<{ version: z.ZodLiteral<1>; id: z.ZodUUID; title: z.ZodString; endpointId: z.ZodString; principalId: z.ZodOptional; appId: z.ZodString; steps: z.ZodArray; role: z.ZodString; label: z.ZodString; }, z.core.$strict>>; condition: z.ZodUnion; label: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strict>]>; coverage: z.ZodDefault>; createdAt: z.ZodNumber; expiresAt: z.ZodNumber; }, z.core.$strict>; export type ComputerFlow = z.infer; export declare const computerFlowMetadata: (flow: ComputerFlow) => { id: string; title: string; steps: number; expiresAt: number; }; export interface ComputerFlowRepository { list(scope: string): ComputerFlow[]; save(scope: string, input: Omit): ComputerFlow; delete(scope: string, id: string): boolean; } /** Small opt-in documents in the existing private SQLite runtime store. */ export declare class ComputerFlowStore implements ComputerFlowRepository { private state; list(scope: string): ComputerFlow[]; save(scope: string, input: Omit): ComputerFlow; delete(scope: string, id: string): boolean; } /** Capture only bounded native hints, never goals, values, pixels, coordinates or snapshot refs. */ export declare class ComputerFlowCapture { private steps; private condition?; private appId?; private invalid; private coverage; record(action: ComputerAction, before: ComputerObservation, receipt: ComputerReceipt, after?: ComputerObservation, expectation?: ComputerExpectation, verification?: ComputerVerification): void; finish(title: string, endpointId: string): Omit; } export declare function computerFlowHint(flow: ComputerFlow): string;