export declare class CodexCliError extends Error {
    readonly hint?: string | undefined;
    constructor(message: string, hint?: string | undefined);
}
/**
 * Iterate the codex's seed lessons and seed each into the engine's
 * lesson store at `promoted` status via `lesson.create` with
 * `authored_by: "pack"` + `seed_as_promoted: true`. The engine treats
 * Pack provenance as user-equivalent (codex install = user authorship).
 */
/**
 * Append a single seeded lesson's one-line summary to the user's
 * CLAUDE.md `opensquid-rules` block. Exported for direct unit testing
 * — covers the auto-publish behavior without spawning the real engine.
 *
 * Returns true if a new line was appended, false if it was an idempotent
 * no-op (lesson id already present, or rules block missing). Failure is
 * non-fatal and logged to stderr — CLAUDE.md is downstream display, not
 * source of truth.
 */
export declare function publishSeededLessonToClaudeMd(args: {
    /** The engine-assigned `les-...` id for the seeded lesson. */
    engineLessonId: string | undefined;
    /** Human-readable description (typically `${trigger} (codex:${codexId})`). */
    description: string;
    /** ISO timestamp; defaults to now if engine doesn't return one. */
    createdAt: string;
    /** Codex-local lesson id, used only for error logging context. */
    codexLessonId: string;
}, options?: {
    target?: string;
}): Promise<boolean>;
export type CodexCliCmd = "install" | "list" | "remove" | "doctor" | "export";
export declare function runCodexCli(cmd: CodexCliCmd, argv: string[]): Promise<void>;
//# sourceMappingURL=cli.d.ts.map