import { type CustomerEvidenceSelectionRecord } from "./customerEvidenceLedger.js"; export declare const CUSTOMER_KNOWLEDGE_SCHEMA_VERSION = "customer-knowledge-generation-v1"; export declare const CUSTOMER_KNOWLEDGE_TRUST_SCHEMA_VERSION = "customer-knowledge-trust-v1"; declare const ALGORITHM: "Ed25519"; interface TrustedKeyProjection { keyId: string; publicKeyPem: string; publicKeyDigest: string; trustEpoch: number; createdAt: string; rotatedAt?: string; predecessorKeyId?: string; } export interface CustomerKnowledgeTrustProjection extends TrustedKeyProjection { schemaVersion: typeof CUSTOMER_KNOWLEDGE_TRUST_SCHEMA_VERSION; algorithm: typeof ALGORITHM; keys: TrustedKeyProjection[]; } export interface CustomerKnowledgeTrustResult { ok: boolean; code?: string; keyId?: string; publicKeyDigest?: string; trustEpoch?: number; predecessorKeyId?: string; correspondenceVerified?: boolean; idempotent?: boolean; } export interface CustomerKnowledgeFact { factId: string; category: string; value: string; citation: { selectionId: string; sourceType: CustomerEvidenceSelectionRecord["sourceType"]; sourceRevision: string; contentFingerprint: string; }; } export interface SignedCustomerKnowledgeGeneration { schemaVersion: typeof CUSTOMER_KNOWLEDGE_SCHEMA_VERSION; status: "ready" | "unavailable"; generationId: string; generationHash: string; generationEpoch: number; priorHeadDigest: string | null; sourceSetDigest: string; bindingHash: string; keyId: string; trustEpoch: number; generatedAt: string; expiresAt: string; facts: CustomerKnowledgeFact[]; unavailableCode?: string; signature: string; } export type CustomerKnowledgeResult = { ok: true; state: "ready"; generation: SignedCustomerKnowledgeGeneration; idempotent: boolean; } | { ok: true; state: "unavailable"; generation: SignedCustomerKnowledgeGeneration; idempotent: boolean; } | { ok: false; state: "unavailable" | "rollback"; code: string; }; export interface CustomerKnowledgeMaterialization { selectionId: string; sourceType: CustomerEvidenceSelectionRecord["sourceType"]; sourceRevision: string; contentFingerprint: string; facts: Readonly>; } export interface InternalOnboardingEvidenceStatus { bindingHash: string; generationId: string; generationHash: string; generationEpoch: number; sourceSetHash: string; generatedAt: string; expiresAt: string; status: "ready" | "unavailable" | "stale" | "blocked"; reader: "get_internal_onboarding_facts"; } export declare function renderInternalOnboardingEvidenceStatus(input: unknown): string; interface PublishRuntime { beforePromote?: () => void; } export declare function bootstrapCustomerKnowledgeTrust(input: unknown): CustomerKnowledgeTrustResult; export declare function rotateCustomerKnowledgeTrust(input: unknown): CustomerKnowledgeTrustResult; export declare function publishCustomerKnowledge(input: unknown, runtime?: PublishRuntime): CustomerKnowledgeResult; export declare function readCustomerKnowledge(input: unknown): CustomerKnowledgeResult; export declare const customerKnowledgeTrustToolDefinitions: ({ name: string; description: string; inputSchema: { type: "object"; additionalProperties: boolean; properties: { lifecycleId: { type: string; }; mode: { type: string; enum: string[]; }; sealedKeyRef: { type: string; }; expectedKeyId?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: "object"; additionalProperties: boolean; properties: { lifecycleId: { type: string; }; expectedKeyId: { type: string; }; sealedKeyRef: { type: string; }; mode?: undefined; }; required: string[]; }; })[]; export declare function adminInternalOnboardingEvidenceTrustBootstrap(input: Record): CustomerKnowledgeTrustResult; export declare function adminInternalOnboardingEvidenceTrustRotate(input: Record): CustomerKnowledgeTrustResult; export {};