/** List extension package dirs whose package metadata enables artifact publishing. */
export function listPublishablePluginPackageDirs(params?: Record<string, unknown>): string[];
/** List package-local runtime output files expected from a runtime build plan. */
export function listPluginNpmRuntimeBuildOutputs(plan: unknown): string[];
export type PluginNpmRuntimeBuildFormat = "esm" | "cjs";
export type PluginNpmRuntimeBuildPlan = {
  runtimeBuildOutputs: string[];
  packageFiles: string[];
  packagePeerMetadata: {
    peerDependencies: {
      openclaw: string;
    };
    peerDependenciesMeta: {
      openclaw: { optional: boolean };
    };
  };
  repoRoot: string;
  packageDir: string;
  pluginDir: string;
  packageJson: {
    openclaw: { compat: { pluginApi: string } };
    [key: string]: unknown;
  };
  rootPackageJson: Record<string, unknown>;
  sourceEntries: string[];
  entry: {
    [k: string]: string;
  };
  outDir: string;
  runtimeFormat: PluginNpmRuntimeBuildFormat;
  runtimeExtensions: string[];
  runtimeSetupEntry: string | undefined;
};
/** Resolve the package-local runtime build plan for one publishable plugin package. */
export function resolvePluginNpmRuntimeBuildPlan(params: unknown): PluginNpmRuntimeBuildPlan | null;
/** List built host SDK imports that are absent from the OpenClaw package exports. */
export function listMissingPluginNpmRuntimeHostExports(plan: PluginNpmRuntimeBuildPlan): string[];
/** Build package-local runtime files and static assets for one plugin package. */
export function buildPluginNpmRuntime(params: unknown): Promise<
  | (PluginNpmRuntimeBuildPlan & {
      assetBuildCommand: string | null;
      copiedStaticAssets: string[];
    })
  | null
>;
export function parseArgs(argv: unknown):
  | {
      help: boolean;
      packageDir: string;
    }
  | {
      packageDir: unknown;
      help?: undefined;
    };
