import { A as NodmixPluginDefinition, C as NodmixPluginApi, Ot as ProviderAuthMethod, cn as ProviderPlugin, k as NodmixPluginConfigSchema, ln as ProviderPluginCatalog, pn as ProviderPluginWizardSetup } from "./types-CLo6hM78.js";
import { t as createProviderApiKeyAuthMethod } from "./provider-api-key-auth-DFOCO7TB.js";
import { l as buildSingleProviderApiKeyCatalog } from "./provider-catalog-shared-ie_YMpkW.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?: NodmixPluginDefinition["kind"];
  configSchema?: NodmixPluginConfigSchema | (() => NodmixPluginConfigSchema);
  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: NodmixPluginApi) => void;
};
declare function defineSingleProviderPluginEntry(options: SingleProviderPluginOptions): {
  id: string;
  name: string;
  description: string;
  configSchema: NodmixPluginConfigSchema;
  register: NonNullable<NodmixPluginDefinition["register"]>;
} & Pick<NodmixPluginDefinition, "kind" | "reload" | "nodeHostCommands" | "securityAuditCollectors">;
//#endregion
export { SingleProviderPluginApiKeyAuthOptions, SingleProviderPluginCatalogOptions, SingleProviderPluginOptions, defineSingleProviderPluginEntry };