import { z } from "#compiled/zod/index.js"; import { type InputRequest } from "#shared/input.js"; import type { ConnectionAuthorizationChallenge } from "#connections/errors.js"; declare const invokeResumeSchema: z.ZodObject<{ session: z.ZodObject<{ sessionId: z.ZodString; streamIndex: z.ZodNumber; }, z.core.$strict>; target: z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>; }, z.core.$strict>; declare const invocationInputRequestSchema: z.ZodObject<{ allowFreeform: z.ZodOptional; kind: z.ZodEnum<{ question: "question"; "session-limit": "session-limit"; "tool-approval": "tool-approval"; }>; prompt: z.ZodString; requestId: z.ZodString; options: z.ZodOptional; id: z.ZodString; label: z.ZodString; }, z.core.$strict>>>; }, z.core.$strict>; declare const invokeResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ resume: z.ZodObject<{ session: z.ZodObject<{ sessionId: z.ZodString; streamIndex: z.ZodNumber; }, z.core.$strict>; target: z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>; }, z.core.$strict>; status: z.ZodLiteral<"running">; }, z.core.$strict>, z.ZodObject<{ requests: z.ZodReadonly; kind: z.ZodEnum<{ question: "question"; "session-limit": "session-limit"; "tool-approval": "tool-approval"; }>; prompt: z.ZodString; requestId: z.ZodString; options: z.ZodOptional; id: z.ZodString; label: z.ZodString; }, z.core.$strict>>>; }, z.core.$strict>>>; resume: z.ZodObject<{ session: z.ZodObject<{ sessionId: z.ZodString; streamIndex: z.ZodNumber; }, z.core.$strict>; target: z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>; }, z.core.$strict>; status: z.ZodLiteral<"input-required">; }, z.core.$strict>, z.ZodObject<{ authorizations: z.ZodReadonly>>; description: z.ZodString; name: z.ZodString; webhookUrl: z.ZodOptional; }, z.core.$strict>>>; resume: z.ZodObject<{ session: z.ZodObject<{ sessionId: z.ZodString; streamIndex: z.ZodNumber; }, z.core.$strict>; target: z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>; }, z.core.$strict>; status: z.ZodLiteral<"authorization-required">; }, z.core.$strict>, z.ZodObject<{ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{ message: z.ZodOptional; status: z.ZodLiteral<"completed">; }, z.core.$strict>, z.ZodObject<{ message: z.ZodString; status: z.ZodLiteral<"failed">; }, z.core.$strict>], "status">; resume: z.ZodObject<{ session: z.ZodObject<{ sessionId: z.ZodString; streamIndex: z.ZodNumber; }, z.core.$strict>; target: z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>; }, z.core.$strict>; status: z.ZodLiteral<"ready">; }, z.core.$strict>, z.ZodObject<{ message: z.ZodString; status: z.ZodLiteral<"failed">; }, z.core.$strict>, z.ZodObject<{ code: z.ZodOptional; message: z.ZodString; resume: z.ZodOptional; target: z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>; }, z.core.$strict>>; status: z.ZodLiteral<"authentication-required">; }, z.core.$strict>], "status">; /** Durable session coordinates emitted by `eve remote invoke`. Credentials are deliberately excluded. */ export type InvokeResume = z.infer; type InvocationInputRequest = z.infer; /** Result emitted by one non-interactive agent invocation. */ export type InvokeResult = z.infer; export type InvokeAuthenticationFailure = Extract; /** Projects a runtime input request to the stable invocation-facing contract. */ export declare function projectInvocationInputRequest(request: InputRequest): InvocationInputRequest; /** Parses a complete, resumable result from a previous `eve remote invoke` command. */ export declare function parseInvokeResumeInput(value: unknown): InvokeResult & { resume: InvokeResume; }; export {};