import type { char } from '@chzky/core'; import type { SearchPattern, StringAble, Vector } from '../../../mod.js'; import { Char, Str } from '../../../mod.js'; export declare const ENCODER: TextEncoder; export declare const DECODER: TextDecoder; export declare const FATAL_DECODER: TextDecoder; export declare function str_to_vec(str: string): Generator; export declare function stringable_to_string(str: StringAble): string; export declare function vec_gen_to_arr(range: Array | Generator | Vector): Array; /** 范围校验 + 正数范围 : '12345' -> 4 + 负数范围 : '54321' -> -5 */ export declare function range_checking(val: number, max: number, include?: boolean): boolean; export declare function is_ascii_regex(str: string): boolean; export declare const ASCII_WHITESPACE_REGX: {}; export declare const STRING_TRIM_WHITESPACE: {}; export declare const WSP_REGX: {}; export declare function split_with_whitespace(str: string): Array; export declare function is_numeric(str: StringAble): boolean; export declare function is_whitespace(str: StringAble): boolean; export declare function encode(str: StringAble): Uint8Array; export declare function regexp_replace_string(pattern: RegExp, replace: string, value: string): string; export declare function js_matches_iterator(text: string, ppattern: SearchPattern): Generator; export declare function matches_char(text: string, cb: (c: char) => boolean): Generator; /** split 大份量切分分界(512KB len) */ export declare const SPLIT_DEMARCATION: number; /** 迭代器实现split */ export declare function spliter_iterator(str: string, pseparator: SearchPattern, limit?: number): Generator; /** \n | \r\n 拆分依据 */ export declare const RN_REGX: {}; /** line生成器版 */ export declare function lines_iterator(str: string): Generator; //# sourceMappingURL=core.d.ts.map