/** * OS1001: naming the character that was found, and the plain spelling to write * instead. * * The replacement sentences are the substitution table of errors.md section 7, * which is the one part of an OS1001 message that errors.json does not carry: * the catalogue holds the message and the fix, and section 7 holds the third * column that fills {suggestion}. The table is transcribed here rather than * paraphrased, and the moment it moves into errors.json this file is generated * away instead of being edited. * * A character the table does not name takes the generic sentence, which is what * section 7 says to do with one. */ export interface Unexpected { /** The {char} slot: what was found, quoted, and named when it cannot be seen. */ readonly char: string; /** The {suggestion} slot: one sentence naming the plain spelling to use. */ readonly suggestion: string; } /** What OS1001 says about one rejected character, or one rejected operator. */ export declare function describeUnexpected(written: string): Unexpected; /** * Whether a code point is a letter the language does not allow in a name. * * It is asked once per word, at the character that ended the word, so that * `l\u00e4ngd` is one name with one error on the one character 3.3 refuses, * rather than two names with a stray character between them. */ export declare function isNonAsciiLetter(point: number): boolean; //# sourceMappingURL=unexpected.d.ts.map