import { type ClientId } from '@zhixuan92/multi-model-agent-core'; import { type DeclaredClientRoster } from '../provisioning/roster.js'; export declare const ExitCode: Readonly<{ SUCCESS: 0; ERR_PARTIAL: 1; ERR_FUTURE_MANIFEST: 2; ERR_UNKNOWN_TARGET: 3; }>; export declare class UnknownTargetError extends Error { readonly code: "unknown_target"; constructor(target: string, valid: readonly string[]); } interface SyncSkillsDeps { argv?: string[]; homeDir?: string; /** Override skills root for testing. */ skillsRoot?: string; /** Exit silently with code 0 if no manifest exists yet (postinstall). */ ifExists?: boolean; /** Suppress normal stdout. Errors still go to stderr. */ silent?: boolean; /** Swallow errors and exit 0 (postinstall). */ bestEffort?: boolean; stdout?: (s: string) => boolean; stderr?: (s: string) => boolean; /** Declared client roster (`config.clients`). Threaded in by cli/index.ts / * cli/serve.ts from the loaded config; omitted means nothing is * declared, so ONLY explicit --target(s)/--all-targets get provisioned. */ declared?: DeclaredClientRoster; /** Test-only: detected-but-undeclared clients, reported as 'suggested' and * NEVER provisioned (FR-7a). Defaults to empty — matches every other * production provisioning call site in this release (`runtime-deps.ts`, * `cli-provisioning.ts`); real host detection is not yet implemented. */ detected?: ReadonlySet; /** Test/advanced overrides for the provisioning port's context. */ daemonPort?: number; cliEntrypoint?: string; stateDir?: string; } interface ParsedArgs { targets: ClientId[] | null; allTargets: boolean; dryRun: boolean; json: boolean; /** Opt out of the plugin-supersedes-standalone retirement. */ keepStandalone: boolean; } export declare function parseArgs(argv: string[]): ParsedArgs; /** * Resolves which clients this run should provision. * * An explicit `--target`/`--all-targets` is a FORCED override — exactly like * `mma mcp install ` — regardless of the declared roster. With * neither, only the declared-'on' roster is returned; a detected-but- * undeclared client is never included here (see `resolveSuggested`). */ export declare function resolveTargets(explicit: ClientId[] | null, allTargets: boolean, declared: DeclaredClientRoster | undefined, detected?: ReadonlySet): ClientId[]; export declare function runSyncSkills(deps?: SyncSkillsDeps): Promise; export {}; //# sourceMappingURL=sync-skills.d.ts.map