/**
 * Shared metadata for human-visible kit exports (YAML/JSON) that must not be treated as runtime truth.
 * Canonical task/planning state lives in SQLite until the git-backed event log ships (Phase 114+).
 */
export declare const KIT_EXPORT_ENVELOPE_SCHEMA_VERSION: 1;
export type KitExportEnvelopeV1 = {
    schemaVersion: typeof KIT_EXPORT_ENVELOPE_SCHEMA_VERSION;
    /** Always false for kit-maintained exports in v1. */
    authoritative: false;
    /** ISO-8601 timestamp when the export bytes were generated. */
    generatedAt: string;
    /**
     * Monotonic sequence from the source row (e.g. `kit_workspace_status.workspace_revision`
     * or planning `planningGeneration` when no finer sequence exists).
     */
    sourceSequence: number;
    /** Describes what produced the payload (e.g. `kit_workspace_status`, `feature_registry`). */
    sourceKind: string;
    /** Operator-facing role label for dashboards and doctor copy. */
    role: "sqlite-projection-export";
};
export declare function buildKitExportEnvelopeV1(args: {
    sourceSequence: number;
    sourceKind: string;
    generatedAt?: string;
}): KitExportEnvelopeV1;
/** YAML mapping block placed at the top of maintainer export files. */
export declare function formatKitExportEnvelopeYamlBlock(envelope: KitExportEnvelopeV1): string;
export type JsonExportWithEnvelopeV1<TPayload> = {
    kitExportEnvelope: KitExportEnvelopeV1;
    payload: TPayload;
};
export declare function wrapJsonExportWithEnvelopeV1<TPayload>(envelope: KitExportEnvelopeV1, payload: TPayload): JsonExportWithEnvelopeV1<TPayload>;
/** Parse `source_sequence` from a workspace-status DB export YAML body (structured block preferred). */
/** Accept wrapped JSON exports (`kitExportEnvelope` + `payload`) or legacy bare payloads. */
export declare function unwrapKitJsonExportPayload(parsed: unknown): unknown;
export declare function readSourceSequenceFromExportYaml(body: string): number | null;
