/**
 * Shared global bootstrap logic for CLEO.
 *
 * Contains the shared functions used by BOTH:
 *   - `bin/postinstall.js` (npm postinstall hook)
 *   - `cleo install-global` CLI command
 *
 * This is the single source of truth for global setup operations.
 * This is the SSoT — postinstall and self-update both delegate here.
 *
 * @task T5267
 */
/** Result tracking arrays passed through each bootstrap step. */
export interface BootstrapContext {
    created: string[];
    warnings: string[];
    isDryRun: boolean;
}
/** Options for bootstrapGlobalCleo. */
export interface BootstrapOptions {
    /** Preview changes without applying. */
    dryRun?: boolean;
    /** Override package root for template/skill discovery. */
    packageRoot?: string;
}
/**
 * Bootstrap the global CLEO directory structure and install templates.
 *
 * Creates:
 *   - ~/.local/share/cleo/templates/CLEO-INJECTION.md (XDG primary)
 *   - ~/.cleo/templates/CLEO-INJECTION.md (legacy sync)
 *   - ~/.agents/AGENTS.md with CAAMP injection block
 *
 * This is idempotent — safe to call multiple times.
 */
export declare function bootstrapGlobalCleo(options?: BootstrapOptions): Promise<BootstrapContext>;
/**
 * No-op. Kept for API compatibility.
 */
export declare function installMcpToProviders(_ctx: BootstrapContext): Promise<void>;
/**
 * Install CLEO core skills globally via CAAMP.
 */
export declare function installSkillsGlobally(ctx: BootstrapContext): Promise<void>;
/**
 * Combined bootstrap health + dependency verification result.
 *
 * Produced by {@link verifyBootstrapComplete} and intended for consumers
 * such as `postinstall.js` and `cleo install-global` that need a single
 * aggregated view of system readiness after bootstrap completes.
 */
export interface BootstrapVerificationResult {
    /** `true` when both bootstrap injection-chain health and all required dependencies are healthy. */
    complete: boolean;
    /** `true` when the injection-chain health checks (template files, AGENTS.md) all pass. */
    bootstrapHealthy: boolean;
    /** `true` when every `required` dependency is healthy (see {@link DependencyReport.allRequiredMet}). */
    dependenciesHealthy: boolean;
    /** Human-readable failure descriptions from both the injection-chain and dependency checks. */
    failures: string[];
    /** Non-fatal advisory messages (optional deps missing, template version skew, etc.). */
    warnings: string[];
}
/**
 * Run both injection-chain health verification and full dependency checks after bootstrap.
 *
 * Combines:
 *   1. Injection-chain health (XDG template, legacy template version sync, AGENTS.md reference,
 *      orphaned content detection) — delegated to the internal {@link verifyBootstrapHealth}.
 *   2. All registered runtime dependencies — delegated to {@link checkAllDependencies} from
 *      `./system/dependencies.js`.
 *
 * This function is intentionally non-throwing. Every error is captured and surfaced through
 * the returned {@link BootstrapVerificationResult} so callers (postinstall, CLI commands) can
 * decide how to present failures without crashing the install process.
 *
 * @returns A {@link BootstrapVerificationResult} aggregating both checks.
 */
export declare function verifyBootstrapComplete(): Promise<BootstrapVerificationResult>;
//# sourceMappingURL=bootstrap.d.ts.map