/** * Rewrite authorable 1-based media positions to canonical ready media ids and * refuse every other shape of media reference before anything is sent. */ export declare function rewriteMediaReferences(body: string, mediaIds: readonly string[], { allowPositions }?: { allowPositions?: boolean; }): { ok: true; body: string; } | { ok: false; error: string; };