17 lines
544 B
TypeScript
17 lines
544 B
TypeScript
|
import { ParseRuntime } from "./ParseRuntime";
|
||
|
/**
|
||
|
* convert data chunk to file lines array
|
||
|
* @param {string} data data chunk as utf8 string
|
||
|
* @param {object} param Converter param object
|
||
|
* @return {Object} {lines:[line1,line2...],partial:String}
|
||
|
*/
|
||
|
export declare function stringToLines(data: string, param: ParseRuntime): StringToLinesResult;
|
||
|
export interface StringToLinesResult {
|
||
|
lines: Fileline[];
|
||
|
/**
|
||
|
* last line which could be incomplete line.
|
||
|
*/
|
||
|
partial: string;
|
||
|
}
|
||
|
export declare type Fileline = string;
|