import { z } from "#compiled/zod/index.js";
import { type InputRequest } from "#client/index.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.ZodDiscriminatedUnion<[z.ZodObject<{
        kind: z.ZodLiteral<"local">;
    }, z.core.$strict>, z.ZodObject<{
        kind: z.ZodLiteral<"remote">;
        serverUrl: z.ZodURL;
    }, z.core.$strict>], "kind">;
}, z.core.$strict>;
declare const invocationInputRequestSchema: z.ZodObject<{
    allowFreeform: z.ZodOptional<z.ZodBoolean>;
    kind: z.ZodEnum<{
        question: "question";
        "session-limit": "session-limit";
        "tool-approval": "tool-approval";
    }>;
    prompt: z.ZodString;
    requestId: z.ZodString;
    options: z.ZodOptional<z.ZodArray<z.ZodObject<{
        description: z.ZodOptional<z.ZodString>;
        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.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"local">;
        }, z.core.$strict>, z.ZodObject<{
            kind: z.ZodLiteral<"remote">;
            serverUrl: z.ZodURL;
        }, z.core.$strict>], "kind">;
    }, z.core.$strict>;
    status: z.ZodLiteral<"running">;
}, z.core.$strict>, z.ZodObject<{
    requests: z.ZodReadonly<z.ZodArray<z.ZodObject<{
        allowFreeform: z.ZodOptional<z.ZodBoolean>;
        kind: z.ZodEnum<{
            question: "question";
            "session-limit": "session-limit";
            "tool-approval": "tool-approval";
        }>;
        prompt: z.ZodString;
        requestId: z.ZodString;
        options: z.ZodOptional<z.ZodArray<z.ZodObject<{
            description: z.ZodOptional<z.ZodString>;
            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.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"local">;
        }, z.core.$strict>, z.ZodObject<{
            kind: z.ZodLiteral<"remote">;
            serverUrl: z.ZodURL;
        }, z.core.$strict>], "kind">;
    }, z.core.$strict>;
    status: z.ZodLiteral<"input-required">;
}, z.core.$strict>, z.ZodObject<{
    authorizations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
        authorization: z.ZodOptional<z.ZodType<ConnectionAuthorizationChallenge, unknown, z.core.$ZodTypeInternals<ConnectionAuthorizationChallenge, unknown>>>;
        description: z.ZodString;
        name: z.ZodString;
        webhookUrl: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>>;
    resume: z.ZodObject<{
        session: z.ZodObject<{
            sessionId: z.ZodString;
            streamIndex: z.ZodNumber;
        }, z.core.$strict>;
        target: z.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"local">;
        }, z.core.$strict>, z.ZodObject<{
            kind: z.ZodLiteral<"remote">;
            serverUrl: z.ZodURL;
        }, z.core.$strict>], "kind">;
    }, z.core.$strict>;
    status: z.ZodLiteral<"authorization-required">;
}, z.core.$strict>, z.ZodObject<{
    outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
        message: z.ZodOptional<z.ZodString>;
        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.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"local">;
        }, z.core.$strict>, z.ZodObject<{
            kind: z.ZodLiteral<"remote">;
            serverUrl: z.ZodURL;
        }, z.core.$strict>], "kind">;
    }, 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<z.ZodString>;
    message: z.ZodString;
    resume: z.ZodOptional<z.ZodObject<{
        session: z.ZodObject<{
            sessionId: z.ZodString;
            streamIndex: z.ZodNumber;
        }, z.core.$strict>;
        target: z.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"local">;
        }, z.core.$strict>, z.ZodObject<{
            kind: z.ZodLiteral<"remote">;
            serverUrl: z.ZodURL;
        }, z.core.$strict>], "kind">;
    }, z.core.$strict>>;
    status: z.ZodLiteral<"authentication-required">;
}, z.core.$strict>], "status">;
/** Durable session coordinates emitted by `eve invoke`. Credentials are deliberately excluded. */
export type InvokeResume = z.infer<typeof invokeResumeSchema>;
export type InvocationInputRequest = z.infer<typeof invocationInputRequestSchema>;
/** Result emitted by one non-interactive agent invocation. */
export type InvokeResult = z.infer<typeof invokeResultSchema>;
export type InvokeAuthenticationFailure = Extract<InvokeResult, {
    status: "authentication-required";
}>;
/** 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 invoke` command. */
export declare function parseInvokeResumeInput(value: unknown): InvokeResult & {
    resume: InvokeResume;
};
/** JSON Schema generated from the canonical invoke result runtime schema. */
export declare const invokeResultJsonSchema: {
    $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
    $anchor?: string;
    $ref?: string;
    $dynamicRef?: string;
    $dynamicAnchor?: string;
    $vocabulary?: Record<string, boolean>;
    $comment?: string;
    $defs?: Record<string, z.core.JSONSchema.JSONSchema>;
    type?: z.core.JSONSchema.SchemaType | z.core.JSONSchema.SchemaType[];
    additionalItems?: z.core.JSONSchema._JSONSchema;
    unevaluatedItems?: z.core.JSONSchema._JSONSchema;
    prefixItems?: z.core.JSONSchema._JSONSchema[];
    items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[];
    contains?: z.core.JSONSchema._JSONSchema;
    additionalProperties?: z.core.JSONSchema._JSONSchema;
    unevaluatedProperties?: z.core.JSONSchema._JSONSchema;
    properties?: Record<string, z.core.JSONSchema._JSONSchema>;
    patternProperties?: Record<string, z.core.JSONSchema._JSONSchema>;
    dependentSchemas?: Record<string, z.core.JSONSchema._JSONSchema>;
    propertyNames?: z.core.JSONSchema._JSONSchema;
    if?: z.core.JSONSchema._JSONSchema;
    then?: z.core.JSONSchema._JSONSchema;
    else?: z.core.JSONSchema._JSONSchema;
    allOf?: z.core.JSONSchema.JSONSchema[];
    anyOf?: z.core.JSONSchema.JSONSchema[];
    oneOf?: z.core.JSONSchema.JSONSchema[];
    not?: z.core.JSONSchema._JSONSchema;
    multipleOf?: number;
    maximum?: number;
    exclusiveMaximum?: number | boolean;
    minimum?: number;
    exclusiveMinimum?: number | boolean;
    maxLength?: number;
    minLength?: number;
    pattern?: string;
    maxItems?: number;
    minItems?: number;
    uniqueItems?: boolean;
    maxContains?: number;
    minContains?: number;
    maxProperties?: number;
    minProperties?: number;
    required?: string[];
    dependentRequired?: Record<string, string[]>;
    enum?: Array<string | number | boolean | null>;
    const?: string | number | boolean | null;
    id?: string;
    description?: string;
    default?: unknown;
    deprecated?: boolean;
    readOnly?: boolean;
    writeOnly?: boolean;
    nullable?: boolean;
    examples?: unknown[];
    format?: string;
    contentMediaType?: string;
    contentEncoding?: string;
    contentSchema?: z.core.JSONSchema.JSONSchema;
    _prefault?: unknown;
    "~standard": z.core.ZodStandardSchemaWithJSON<z.ZodDiscriminatedUnion<[z.ZodObject<{
        resume: z.ZodObject<{
            session: z.ZodObject<{
                sessionId: z.ZodString;
                streamIndex: z.ZodNumber;
            }, z.core.$strict>;
            target: z.ZodDiscriminatedUnion<[z.ZodObject<{
                kind: z.ZodLiteral<"local">;
            }, z.core.$strict>, z.ZodObject<{
                kind: z.ZodLiteral<"remote">;
                serverUrl: z.ZodURL;
            }, z.core.$strict>], "kind">;
        }, z.core.$strict>;
        status: z.ZodLiteral<"running">;
    }, z.core.$strict>, z.ZodObject<{
        requests: z.ZodReadonly<z.ZodArray<z.ZodObject<{
            allowFreeform: z.ZodOptional<z.ZodBoolean>;
            kind: z.ZodEnum<{
                question: "question";
                "session-limit": "session-limit";
                "tool-approval": "tool-approval";
            }>;
            prompt: z.ZodString;
            requestId: z.ZodString;
            options: z.ZodOptional<z.ZodArray<z.ZodObject<{
                description: z.ZodOptional<z.ZodString>;
                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.ZodDiscriminatedUnion<[z.ZodObject<{
                kind: z.ZodLiteral<"local">;
            }, z.core.$strict>, z.ZodObject<{
                kind: z.ZodLiteral<"remote">;
                serverUrl: z.ZodURL;
            }, z.core.$strict>], "kind">;
        }, z.core.$strict>;
        status: z.ZodLiteral<"input-required">;
    }, z.core.$strict>, z.ZodObject<{
        authorizations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
            authorization: z.ZodOptional<z.ZodType<ConnectionAuthorizationChallenge, unknown, z.core.$ZodTypeInternals<ConnectionAuthorizationChallenge, unknown>>>;
            description: z.ZodString;
            name: z.ZodString;
            webhookUrl: z.ZodOptional<z.ZodString>;
        }, z.core.$strict>>>;
        resume: z.ZodObject<{
            session: z.ZodObject<{
                sessionId: z.ZodString;
                streamIndex: z.ZodNumber;
            }, z.core.$strict>;
            target: z.ZodDiscriminatedUnion<[z.ZodObject<{
                kind: z.ZodLiteral<"local">;
            }, z.core.$strict>, z.ZodObject<{
                kind: z.ZodLiteral<"remote">;
                serverUrl: z.ZodURL;
            }, z.core.$strict>], "kind">;
        }, z.core.$strict>;
        status: z.ZodLiteral<"authorization-required">;
    }, z.core.$strict>, z.ZodObject<{
        outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
            message: z.ZodOptional<z.ZodString>;
            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.ZodDiscriminatedUnion<[z.ZodObject<{
                kind: z.ZodLiteral<"local">;
            }, z.core.$strict>, z.ZodObject<{
                kind: z.ZodLiteral<"remote">;
                serverUrl: z.ZodURL;
            }, z.core.$strict>], "kind">;
        }, 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<z.ZodString>;
        message: z.ZodString;
        resume: z.ZodOptional<z.ZodObject<{
            session: z.ZodObject<{
                sessionId: z.ZodString;
                streamIndex: z.ZodNumber;
            }, z.core.$strict>;
            target: z.ZodDiscriminatedUnion<[z.ZodObject<{
                kind: z.ZodLiteral<"local">;
            }, z.core.$strict>, z.ZodObject<{
                kind: z.ZodLiteral<"remote">;
                serverUrl: z.ZodURL;
            }, z.core.$strict>], "kind">;
        }, z.core.$strict>>;
        status: z.ZodLiteral<"authentication-required">;
    }, z.core.$strict>], "status">>;
    $id: string;
    title: string;
};
export {};
