import { FlowDoc } from '../ir/flow.js'; import { ScriptKey } from './remote-fonts.js'; /** * The writing system a character needs a face for, or `undefined` when a Latin * family covers it. * * @param cp The code point. * @param hanFace Which face draws unified Han in this document (see * {@link scriptsInFlow}); defaults to Simplified. */ export declare function scriptForCodepoint(cp: number, hanFace?: ScriptKey): ScriptKey | undefined; /** * The writing systems a document holds text in, beside the Latin one. * * Unified Han is written the same in Japanese, Korean and Chinese and drawn * differently in each, and the character does not say which — the document * does: Kana beside it means Japanese, Hangul means Korean. So the whole text * is read once, and the answer applies to every Han character in it. * * @param flow The parsed document. * @returns The scripts to fetch a face for, and the one Han is drawn with. */ export declare function scriptsInFlow(flow: FlowDoc): { scripts: Set; hanFace: ScriptKey; };