/** * @shieldfont/core — pure encoding/decoding logic for ShieldFont. * * This package has zero runtime dependencies. It exports the same * primitives that every higher-level integration (the React component, a * framework adapter, your own build step) uses. * * Quick start: * import { encode, alpha } from "@shieldfont/core"; * const encoded = encode("Publish your writing", alpha); * * For HTML documents containing shield markers, use the build/ship/check * helpers from the markers module — and finish with `assertShipped`, which is * the only one of them that can tell a protected page from an unprotected one: * import { buildHtml, shipHtml, assertShipped } from "@shieldfont/core"; */ import type { Mapping } from "./types.js"; /** * The @shieldfont/core **package** release version. * * This is NOT a dictionary stamp, and it is expected to differ from * `_meta.version`. Each mapping carries its own `_meta.version` / `mappingId` * marking the *dictionary generation*, which only moves when the word pairs are * rebuilt, so a patch release that ships no new dictionary leaves the mappings * on the older stamp (today: package 0.3.0, mappings 0.1.0). The bundled fonts * are deliberately version-neutral and carry no mappingId at all. * * To learn which dictionary generation you are running, call * `mappingMeta(mapping)`. Do not infer it from VERSION. */ export declare const VERSION = "0.3.5"; export { encode, decode, encodeSegments } from "./encode.js"; export { encodeHtml, decodeHtml } from "./html.js"; export { buildHtml, shipHtml, checkHtml, assertShipped } from "./markers.js"; export type { CheckResult } from "./markers.js"; export { loadMappingFromString, parseMappingId, mappingMeta } from "./mapping.js"; export { DECOY_CORPUS, decoyParagraphs } from "./decoy-corpus.js"; export type { Mapping, MappingId, Segment } from "./types.js"; export declare const alpha: Mapping; export declare const beta: Mapping; export declare const gamma: Mapping; export declare const m15en: Mapping; /** * @deprecated Misnomer — this constant is the **m15en** mapping (React * `variant="maxhide"`), NOT the v18 "alpha". Kept only so existing imports don't * break. Use `m15en` (this exact mapping, backing the `maxhide` variant) or * `alpha` (the v18 production default) instead. */ export declare const M15EN_ALPHA: Mapping; //# sourceMappingURL=index.d.ts.map