@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
22 lines • 1.13 kB
TypeScript
import { FixedRing, type ScalarEntry, ScalarScanner } from "../stream-utils.ts";
import type { DetectorMatch, StreamDetector } from "../types.ts";
import { type LineCycleState } from "./collapse-lines.ts";
import { type NearDuplicateState } from "./collapse-near-duplicates.ts";
import { type ParagraphRepeatState } from "./collapse-paragraphs.ts";
import { type ShortPeriodState } from "./collapse-periods.ts";
import { type DominantRunState, type WhitespaceFloodState } from "./collapse-scalars.ts";
export declare const TAIL_RING_CAPACITY = 512;
export interface CollapseState {
readonly scanner: ScalarScanner;
readonly tailRing: FixedRing<ScalarEntry>;
readonly run: DominantRunState;
readonly whitespace: WhitespaceFloodState;
readonly periods: ShortPeriodState;
readonly lines: LineCycleState;
readonly paragraphs: ParagraphRepeatState;
readonly nearDuplicates: NearDuplicateState;
latched: DetectorMatch | null;
}
export declare function createCollapseState(): CollapseState;
export declare const collapseDetector: StreamDetector<CollapseState>;
//# sourceMappingURL=collapse.d.ts.map