import { z } from 'zod'; import type { Config } from '../config/schema.js'; export declare const tuiManagementSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ action: z.ZodLiteral<"worktree.list">; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"worktree.create">; baseRef: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"worktree.use">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"worktree.remove">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"mcp.probe">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"mcp.tools">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"mcp.login">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"mcp.logout">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"mcp.auth">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"mcp.cancel">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"mcp.redirect">; id: z.ZodString; url: z.ZodString; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"plugin.catalog">; query: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"plugin.inspect">; source: z.ZodString; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"plugin.install">; source: z.ZodString; reviewHash: z.ZodString; replaceId: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"plugin.get">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"plugin.enable">; id: z.ZodString; enabled: z.ZodBoolean; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"plugin.remove">; id: z.ZodString; credentials: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"plugin.rollback">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"plugin.setup">; id: z.ZodString; command: 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">>; }, z.core.$strict>, z.ZodObject<{ action: z.ZodLiteral<"plugin.setup.get">; id: z.ZodString; }, z.core.$strict>], "action">; export type TuiManagementCommand = z.infer; /** Shared user-initiated management actions. Agent tools cannot invoke this control plane. */ export declare function manageTuiCapability(input: { config: Config; workspace: string; owner: string; conversationId?: string; command: TuiManagementCommand; }): Promise;