import { O as OperatorScope } from "./types-BrRP_qay.js";
import { l as ChannelOwnedSetupContract, u as ChannelSetupAdapter } from "./manifest-registry.types-DV1wX_0e.js";
import { n as ChannelConfigSchema } from "./types.config-CGDAHrEQ.js";
import { $ as ChannelAgentToolFactory, A as ChannelOutboundAdapter, D as ChannelStatusAdapter, E as ChannelSecurityAdapter, Mn as ChannelMessageActionName$1, O as ChannelPairingAdapter, Q as ChannelAgentTool, T as ChannelSecretsAdapter, Z as ChannelAgentPromptAdapter, _ as ChannelGatewayAdapter, a as ChannelAllowlistAdapter, at as ChannelMessageActionAdapter, b as ChannelHeartbeatAdapter, c as ChannelCommandAdapter, ct as ChannelMeta, d as ChannelConversationBindingSupport, dt as ChannelStreamingAdapter, et as ChannelCapabilities, f as ChannelDirectoryAdapter, ft as ChannelThreadingAdapter, g as ChannelElevatedAdapter, gt as ChannelMessageAdapterShape, it as ChannelMentionAdapter, l as ChannelConfigAdapter, n as ChannelSetupWizard, o as ChannelApprovalCapability, p as ChannelDoctorAdapter, r as ChannelSetupWizardAdapter, s as ChannelAuthAdapter, st as ChannelMessagingAdapter, u as ChannelConfiguredBindingProvider, w as ChannelResolverAdapter, x as ChannelLifecycleAdapter, y as ChannelGroupAdapter } from "./setup-wizard-types-BQoe5r1h.js";
import { t as ChannelId } from "./channel-id.types-Bcb3Z9E6.js";
//#region src/channels/plugins/types.plugin.d.ts
/** Full capability contract for a native channel plugin. */
type ChannelPluginSetupWizard = ChannelSetupWizard | ChannelSetupWizardAdapter;
type ChannelGatewayMethodDescriptor = {
  name: string;
  scope?: OperatorScope;
  description?: string;
};
type ChannelPlugin<ResolvedAccount = any, Probe = unknown, Audit = unknown> = {
  id: ChannelId;
  meta: ChannelMeta;
  capabilities: ChannelCapabilities;
  defaults?: {
    queue?: {
      debounceMs?: number;
    };
  };
  reload?: {
    configPrefixes: string[];
    noopPrefixes?: string[];
    /**
     * Opt into restarting only the changed non-default named account.
     * Set only when sibling account resolution and lifecycle state are isolated and
     * account stop fully settles owned work. Shared, default, removed, or unresolved
     * account changes still restart the whole channel.
     */
    accountScopedRestart?: boolean;
  };
  setupWizard?: ChannelPluginSetupWizard;
  config: ChannelConfigAdapter<ResolvedAccount>;
  configSchema?: ChannelConfigSchema;
  /** Channel-owned typed setup contract. Preferred over the legacy shared input adapter. */
  setupContract?: ChannelOwnedSetupContract;
  /** @deprecated Use setupContract for new plugins. */
  setup?: ChannelSetupAdapter;
  pairing?: ChannelPairingAdapter;
  security?: ChannelSecurityAdapter<ResolvedAccount>;
  groups?: ChannelGroupAdapter;
  mentions?: ChannelMentionAdapter;
  outbound?: ChannelOutboundAdapter;
  status?: ChannelStatusAdapter<ResolvedAccount, Probe, Audit>;
  gatewayMethods?: string[];
  gatewayMethodDescriptors?: ChannelGatewayMethodDescriptor[];
  gateway?: ChannelGatewayAdapter<ResolvedAccount>;
  auth?: ChannelAuthAdapter;
  approvalCapability?: ChannelApprovalCapability;
  elevated?: ChannelElevatedAdapter;
  commands?: ChannelCommandAdapter;
  lifecycle?: ChannelLifecycleAdapter;
  secrets?: ChannelSecretsAdapter;
  allowlist?: ChannelAllowlistAdapter;
  doctor?: ChannelDoctorAdapter;
  bindings?: ChannelConfiguredBindingProvider;
  conversationBindings?: ChannelConversationBindingSupport;
  streaming?: ChannelStreamingAdapter;
  threading?: ChannelThreadingAdapter;
  message?: ChannelMessageAdapterShape;
  messaging?: ChannelMessagingAdapter;
  agentPrompt?: ChannelAgentPromptAdapter;
  directory?: ChannelDirectoryAdapter;
  resolver?: ChannelResolverAdapter;
  actions?: ChannelMessageActionAdapter;
  heartbeat?: ChannelHeartbeatAdapter;
  agentTools?: ChannelAgentToolFactory | ChannelAgentTool[];
};
//#endregion
//#region src/channels/plugins/types.public.d.ts
/** Stable message action name union derived from the registered action list. */
type ChannelMessageActionName = ChannelMessageActionName$1;
//#endregion
export { ChannelPlugin as n, ChannelMessageActionName as t };