AK-21/Graphite-Industrial-Intelligence
0
1/**2 * Encode certain characters in `value`.3 *4 * @param {string} value5 * @param {CoreWithFormatOptions} options6 * @returns {string}7 */8export function core(value: string, options: CoreWithFormatOptions): string;9export type CoreOptions = {10 /**11 * Whether to only escape the given subset of characters.12 */13 subset?: ReadonlyArray<string>;14 /**15 * Whether to only escape possibly dangerous characters.16 * Those characters are `"`, `&`, `'`, `<`, `>`, and `` ` ``.17 */18 escapeOnly?: boolean;19};20export type FormatOptions = {21 /**22 * Format strategy.23 */24 format: (code: number, next: number, options: CoreWithFormatOptions) => string;25};26export type CoreWithFormatOptions = CoreOptions & FormatOptions & import('./util/format-smart.js').FormatSmartOptions;27 