import { A as OpenClawPluginDefinition, C as OpenClawPluginApi, Ot as ProviderAuthMethod, cn as ProviderPlugin, k as OpenClawPluginConfigSchema, ln as ProviderPluginCatalog, pn as ProviderPluginWizardSetup } from "./types-DWFCynOJ.js";
import { t as createProviderApiKeyAuthMethod } from "./provider-api-key-auth-DXojaBbb.js";
import { l as buildSingleProviderApiKeyCatalog } from "./provider-catalog-shared-Cni--uMW.js";

//#region src/plugin-sdk/provider-entry.d.ts
type ApiKeyAuthMethodOptions = Parameters<typeof createProviderApiKeyAuthMethod>[0];
type SingleProviderPluginApiKeyAuthOptions = Omit<ApiKeyAuthMethodOptions, "providerId" | "expectedProviders" | "wizard"> & {
  expectedProviders?: string[];
  wizard?: false | ProviderPluginWizardSetup;
};
type SingleProviderPluginCatalogOptions = {
  buildProvider: Parameters<typeof buildSingleProviderApiKeyCatalog>[0]["buildProvider"];
  buildStaticProvider?: Parameters<typeof buildSingleProviderApiKeyCatalog>[0]["buildProvider"];
  allowExplicitBaseUrl?: boolean;
  run?: never;
  order?: never;
  staticRun?: never;
} | {
  run: ProviderPluginCatalog["run"];
  staticRun?: ProviderPluginCatalog["run"];
  order?: ProviderPluginCatalog["order"];
  buildProvider?: never;
  buildStaticProvider?: never;
  allowExplicitBaseUrl?: never;
};
type SingleProviderPluginOptions = {
  id: string;
  name: string;
  description: string;
  /**
   * @deprecated Declare exclusive plugin kind in `openclaw.plugin.json` via
   * manifest `kind`. Runtime-entry `kind` remains only as a compatibility
   * fallback for older plugins.
   */
  kind?: OpenClawPluginDefinition["kind"];
  configSchema?: OpenClawPluginConfigSchema | (() => OpenClawPluginConfigSchema);
  provider?: {
    id?: string;
    label: string;
    docsPath: string;
    aliases?: string[];
    envVars?: string[];
    auth?: SingleProviderPluginApiKeyAuthOptions[];
    extraAuth?: ProviderAuthMethod[];
    catalog: SingleProviderPluginCatalogOptions;
  } & Omit<ProviderPlugin, "id" | "label" | "docsPath" | "aliases" | "envVars" | "auth" | "catalog" | "staticCatalog">;
  register?: (api: OpenClawPluginApi) => void;
};
declare function defineSingleProviderPluginEntry(options: SingleProviderPluginOptions): {
  id: string;
  name: string;
  description: string;
  configSchema: OpenClawPluginConfigSchema;
  register: NonNullable<OpenClawPluginDefinition["register"]>;
} & Pick<OpenClawPluginDefinition, "kind" | "reload" | "nodeHostCommands" | "securityAuditCollectors">;
//#endregion
export { SingleProviderPluginApiKeyAuthOptions, SingleProviderPluginCatalogOptions, SingleProviderPluginOptions, defineSingleProviderPluginEntry };