/** * Serialize a font family NAME as a CSS `font-family` value. * * A family name is user data: it comes from a `store.addFont()` registration, * an imported PDF/PSD/SVG, or a Google Fonts entry, so it can hold characters * that are illegal in an unquoted CSS value — `MPLUS1p-Black (1)` (parentheses), * `8-bit` (leading digit), `Nina's Font` (apostrophe). An unquoted value like * that makes the whole declaration invalid, and the browser silently drops it * and paints a fallback face. A quoted string is valid for any printable * name, so this always quotes and escapes. * * The value belongs anywhere a family name is written as CSS: a `font-family` * declaration, an inline `style`, an SVG `font-family` attribute (its value is * a CSS font-family list), and the `@font-face` descriptor. * * Pass a family NAME only. A generic family (`serif`, `sans-serif`, …) must * stay unquoted — quoted, it names a font called "sans-serif" instead of the * generic — so append those to the returned value rather than passing them in. * * One name this cannot rescue on the Konva paths: a family holding a COMMA. * Konva's own `normalizeFontFamily` splits its fontFamily prop on the comma * before we ever reach the canvas, so `Arial,Bold` (the shape an unmapped PDF * BaseFont arrives in) resolves as two families there. It round-trips * correctly everywhere else — the css declarations, the @font-face match and * the font-name lookups. */ export declare function cssFontFamily(fontFamily: string): string;