import { MANIFEST_KEY, LEGACY_MANIFEST_KEYS } from "../compat/legacy-names.js";
import type { PluginConfigUiHint, PluginKind, PluginUiManifestEntry } from "./types.js";
export declare const PLUGIN_MANIFEST_FILENAME = "minion.plugin.json";
export declare const PLUGIN_MANIFEST_FILENAMES: readonly ["minion.plugin.json", "openclaw.plugin.json"];
export type PluginManifest = {
    id: string;
    configSchema: Record<string, unknown>;
    kind?: PluginKind;
    channels?: string[];
    providers?: string[];
    skills?: string[];
    name?: string;
    description?: string;
    version?: string;
    uiHints?: Record<string, PluginConfigUiHint>;
    ui?: PluginUiManifestEntry[];
};
export type PluginManifestLoadResult = {
    ok: true;
    manifest: PluginManifest;
    manifestPath: string;
} | {
    ok: false;
    error: string;
    manifestPath: string;
};
export declare function resolvePluginManifestPath(rootDir: string): string;
export declare function loadPluginManifest(rootDir: string): PluginManifestLoadResult;
export type PluginPackageChannel = {
    id?: string;
    label?: string;
    selectionLabel?: string;
    detailLabel?: string;
    docsPath?: string;
    docsLabel?: string;
    blurb?: string;
    order?: number;
    aliases?: string[];
    preferOver?: string[];
    systemImage?: string;
    selectionDocsPrefix?: string;
    selectionDocsOmitLabel?: boolean;
    selectionExtras?: string[];
    showConfigured?: boolean;
    quickstartAllowFrom?: boolean;
    forceAccountBinding?: boolean;
    preferSessionLookupForAnnounceTarget?: boolean;
};
export type PluginPackageInstall = {
    npmSpec?: string;
    localPath?: string;
    defaultChoice?: "npm" | "local";
};
export type MinionPackageManifest = {
    extensions?: string[];
    channel?: PluginPackageChannel;
    install?: PluginPackageInstall;
};
export type ManifestKey = typeof MANIFEST_KEY;
export type LegacyManifestKey = (typeof LEGACY_MANIFEST_KEYS)[number];
export type PackageManifest = {
    name?: string;
    version?: string;
    description?: string;
} & Partial<Record<ManifestKey | LegacyManifestKey, MinionPackageManifest>>;
export declare function getPackageManifestMetadata(manifest: PackageManifest | undefined): MinionPackageManifest | undefined;
/** @deprecated Use MinionPackageManifest */
export type OpenClawPackageManifest = MinionPackageManifest;
