/**
 * Pack Publish Workflow (orchestrator across W2.3 + W1.4).
 *
 * Pulls together the auto-pack generator (W2.3) and the pack version store
 * (W1.4) into a single customer happy-path:
 *
 *   1. Customer scans an agent (W2.1 / W2.2 / W4.3 produce AgentManifest).
 *   2. Scanner + auto-pack generator emits proposedRules.
 *   3. Customer reviews + selects acceptedRules.
 *   4. publishGeneratedPack(...) authors the pack, publishes a version,
 *      optionally activates it (or sets shadow mode for a soft rollout),
 *      and returns the result + the version events.
 *
 * Pure orchestration — uses already-tested W1.4 + W2.3 modules. No HTTP,
 * no IO beyond what the version store itself does (in-memory by default).
 *
 * @connexum/ai-governance  F-NEW-PRODUCT-AGENT-VISIBILITY-CLUSTER-2026-05-12
 */
import { type AutoPackOptions, type AutoPackResult } from './auto-pack-generator.js';
import { PackVersionStore, type PackVersionRecord, type PackVersionEvent } from './pack-versioning.js';
import type { AgentManifest } from './owasp-agentic-scanner.js';
import { type ValidationReport } from './pack-rule-validator.js';
/**
 * Thrown when validatePackInput() returns errors (ERROR-severity issues
 * in the auto-generated pack). The report is preserved so the caller / UI
 * can surface the specific issues to the customer.
 */
export declare class PackValidationError extends Error {
    readonly report: ValidationReport;
    constructor(message: string, report: ValidationReport);
}
export interface PublishGeneratedPackInput {
    manifest: AgentManifest;
    publishedBy: string;
    /** Pass through to autoGenerateCompanyPack. */
    autoPack?: AutoPackOptions;
    /** What to do with the new version once published. */
    postPublish?: 'draft' | 'active' | 'shadow';
    /** Free-text changelog for the audit chain. */
    changelog?: string;
    /** Optional pre-built version store (else a fresh one is created). */
    versionStore?: PackVersionStore;
}
export interface PublishGeneratedPackResult {
    autoPack: AutoPackResult;
    versionRecord: PackVersionRecord;
    events: PackVersionEvent[];
    /**
     * Schema-gate report. `ok` will always be true for a successful publish
     * (throws otherwise); warnings are non-blocking and surfaced for UI hints.
     */
    validation: ValidationReport;
}
/**
 * End-to-end happy-path: scan -> auto-pack -> publish -> (activate | shadow).
 * Returns the AutoPackResult, the resulting PackVersionRecord, and every
 * PackVersionEvent emitted during this call (for audit forwarding).
 */
export declare function publishGeneratedPack(input: PublishGeneratedPackInput): PublishGeneratedPackResult;
//# sourceMappingURL=pack-publish-workflow.d.ts.map