import { z } from 'zod'; import type { Config } from '../../config/schema.js'; import { AgentPluginStore } from './store.js'; declare const schema: z.ZodObject<{ id: z.ZodString; pluginId: z.ZodString; owner: z.ZodString; packageRevision: z.ZodString; revision: z.ZodNumber; state: z.ZodEnum<{ cancelled: "cancelled"; completed: "completed"; failed: "failed"; running: "running"; pending: "pending"; interrupted: "interrupted"; action_required: "action_required"; }>; resources: z.ZodEnum<{ error: "error"; ready: "ready"; running: "running"; pending: "pending"; }>; connections: z.ZodArray; toolCount: z.ZodOptional; authorizationId: z.ZodOptional; }, z.core.$strip>>; installed: z.ZodDefault; deferred: z.ZodDefault; authorizations: z.ZodDefault; state: z.ZodEnum<{ error: "error"; skipped: "skipped"; pending: "pending"; connected: "connected"; }>; issues: z.ZodDefault>; instructions: z.ZodDefault>; method: z.ZodOptional; helpUrl: z.ZodOptional; }, z.core.$strict>>>; method: z.ZodOptional; attemptId: z.ZodOptional; }, z.core.$strip>>>; operations: z.ZodDefault>>; missingConfig: z.ZodDefault>; partial: z.ZodBoolean; updatedAt: z.ZodString; error: z.ZodOptional; }, z.core.$strip>; export type PluginSetupJob = z.infer; export declare const setupActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ expectedRevision: z.ZodNumber; idempotencyKey: z.ZodOptional; action: z.ZodLiteral<"prepare">; }, z.core.$strict>, z.ZodObject<{ server: z.ZodString; sourceServerId: z.ZodString; expectedRevision: z.ZodNumber; idempotencyKey: z.ZodOptional; action: z.ZodLiteral<"reuse">; }, z.core.$strict>, z.ZodObject<{ server: z.ZodString; method: z.ZodOptional; expectedRevision: z.ZodNumber; idempotencyKey: z.ZodOptional; action: z.ZodLiteral<"authorize">; }, z.core.$strict>, z.ZodObject<{ values: z.ZodRecord; authorization: z.ZodOptional; method: z.ZodOptional; expectedRevision: z.ZodNumber; idempotencyKey: z.ZodOptional; action: z.ZodLiteral<"configure">; }, z.core.$strict>, z.ZodObject<{ workspacePaths: z.ZodOptional>>; allowPartial: z.ZodDefault; expectedRevision: z.ZodNumber; idempotencyKey: z.ZodOptional; action: z.ZodLiteral<"complete">; }, z.core.$strict>, z.ZodObject<{ expectedRevision: z.ZodNumber; idempotencyKey: z.ZodOptional; action: z.ZodLiteral<"defer">; }, z.core.$strict>, z.ZodObject<{ expectedRevision: z.ZodNumber; idempotencyKey: z.ZodOptional; action: z.ZodLiteral<"cancel">; }, z.core.$strict>], "action">; export declare class PluginSetupService { readonly store: AgentPluginStore; constructor(store?: AgentPluginStore); private path; private key; private write; get(id: string, owner: string): PluginSetupJob | undefined; create(id: string, owner: string): PluginSetupJob; invalidateConnection(id: string, owner: string, name: string): void; reusableConnections(id: string, owner: string, config: Config): Promise>>; authorization(id: string, owner: string, server: string, config: Config): Promise; redirect(id: string, owner: string, server: string, url: string, config: Config): boolean; private config; startPrepare(id: string, owner: string, revision: number, config: Config, workspace: string, idempotencyKey?: string): PluginSetupJob; /** Recheck an installed revision without login prompts or resource downloads. */ refreshRuntime(id: string, config: Config, workspace: string): Promise; act(id: string, owner: string, input: z.infer, config: Config, workspace: string): Promise; private perform; } export {};