import { z } from 'zod'; import { type PlatformDiscovery, type PlatformEvent } from './contracts.js'; export declare const PLATFORM_RUNTIME_PROVIDER = "xopc-platform-runtime"; export declare const PLATFORM_RUNTIME_PROFILE = "xopc-platform-runtime:default"; export declare function discoverPlatform(baseUrl: string, fetchImpl?: typeof fetch): Promise; export declare const RuntimeCommandSchema: z.ZodObject<{ type: z.ZodLiteral<"run.start">; payload: z.ZodObject<{ runId: z.ZodString; traceId: z.ZodString; agentVersionId: z.ZodString; organizationId: z.ZodString; workspaceId: z.ZodString; runtimeId: z.ZodString; manifest: z.ZodObject<{ schemaVersion: z.ZodLiteral<"1">; agentId: z.ZodString; version: z.ZodString; runtime: z.ZodObject<{ engine: z.ZodLiteral<"xopc">; requires: z.ZodString; execution: z.ZodArray>; }, z.core.$strict>; entry: z.ZodObject<{ instructions: z.ZodString; workflow: z.ZodOptional; }, z.core.$strict>; models: z.ZodObject<{ intents: z.ZodArray>; allow: z.ZodArray; }, z.core.$strict>; dependencies: z.ZodObject<{ skills: z.ZodArray; }, z.core.$strict>>; connectors: z.ZodArray; }, z.core.$strict>>; extensions: z.ZodDefault; }, z.core.$strict>>>; }, z.core.$strict>; permissions: z.ZodObject<{ tools: z.ZodArray; networkDomains: z.ZodArray; filesystem: z.ZodArray; effects: z.ZodArray>; }, z.core.$strict>; data: z.ZodObject<{ classification: z.ZodEnum<{ public: "public"; internal: "internal"; confidential: "confidential"; restricted: "restricted"; }>; memory: z.ZodEnum<{ workspace: "workspace"; none: "none"; local: "local"; }>; retentionPolicy: z.ZodString; }, z.core.$strict>; quality: z.ZodObject<{ evaluationSuite: z.ZodOptional; releaseGate: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$loose>; id: z.ZodString; runId: z.ZodString; leaseToken: z.ZodString; leaseExpiresAt: z.ZodNumber; }, z.core.$strict>; export type RuntimeCommand = z.infer; declare const runtimeRenewalResponseSchema: z.ZodObject<{ leaseExpiresAt: z.ZodNumber; cancelRequested: z.ZodBoolean; }, z.core.$strict>; export type RuntimeLeaseRenewal = z.infer; export declare class PlatformRuntimeClient { private readonly token; private readonly fetchImpl; private readonly agentApi; constructor(discovery: PlatformDiscovery, token: string, fetchImpl?: typeof fetch); private request; heartbeat(input?: { capabilities?: Record; endpoint?: string; leaseSeconds?: number; }): Promise>; lease(leaseSeconds?: number): Promise; report(event: PlatformEvent, leaseToken?: string): Promise<'accepted' | 'duplicate'>; renew(commandId: string, leaseToken: string, leaseSeconds?: number): Promise; } export {};