import { type PromoteRecoveryContext } from './promote-recovery-response.js'; export { respondPromoteRecoveryError } from './promote-recovery-response.js'; import type { RequestContext } from './context.js'; /** * GH#1778 — shared 409 mapping for the ambiguous-author VM-publish error, used * by both `vm/publish` and `vm/publish-async` so the `{ code, error, candidates }` * response shape cannot drift between the two routes. Returns `true` (and writes * the response) when it handled the error, `false` otherwise. */ export declare function respondAmbiguousAssertionAuthor(res: RequestContext["res"], e: any): boolean; /** * GH#1786 — author-selection outcomes that are permanent, caller-actionable * state rather than server faults. Unmapped they would fall through to a generic * 500 on both publish lanes; they are answered here, and are matched BEFORE the * precondition / message-keyed branches so a future reword of either message * cannot be captured by those looser predicates. * * - `ASSERTION_AUTHOR_NOT_RESIDENT`: the selected author has no finalized * assertion at this coordinate. Echoes the resident `candidates` so the client * can retry without a second round-trip. * - `PUBLISH_AUTHOR_NOT_CUSTODIAL`: the selected author's KA needs an UPDATE, * which the node cannot re-sign without that author's custodial key. */ export declare function respondAuthorSelectionError(res: RequestContext["res"], e: any): boolean; export declare function respondPublicationPricingPolicyError(res: RequestContext["res"], e: any): boolean; /** Shared typed lifecycle classification; callers retain route-specific recovery. */ export declare function respondAssertionCodeError(res: RequestContext["res"], e: any): boolean; /** * Map typed WM/SWM preconditions and integrity failures before message fallbacks. * VM publishing keeps its own mapping so chain failures remain server errors. */ export declare function respondAssertionError(res: RequestContext["res"], e: any, context?: PromoteRecoveryContext): void; //# sourceMappingURL=knowledge-assets-error-mapping.d.ts.map