UNPKG

claude-flow

Version:

Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)

37 lines (36 loc) 1.17 kB
import { ERR, type ParserError, type ParserErrorHandler } from '../common/error-codes.js'; export declare class Preprocessor { private handler; html: string; pos: number; private lastGapPos; private gapStack; private skipNextNewLine; lastChunkWritten: boolean; endOfChunkHit: boolean; bufferWaterline: number; private isEol; private lineStartPos; droppedBufferSize: number; line: number; constructor(handler: { onParseError?: ParserErrorHandler | null; }); /** The column on the current line. If we just saw a gap (eg. a surrogate pair), return the index before. */ get col(): number; get offset(): number; constructor(code: ERR, cpOffset: number): ParserError; private lastErrOffset; private _err; private _addGap; private _processSurrogate; constructor(): boolean; constructor(): void; constructor(chunk: string, isLastChunk: boolean): void; constructor(chunk: string): void; constructor(pattern: string, caseSensitive: boolean): boolean; constructor(offset: number): number; constructor(): number; private _checkForProblematicCharacters; constructor(count: number): void; }