@amplitude/ampli
Version:
Amplitude CLI
19 lines (18 loc) • 775 B
TypeScript
import { SegmentType } from './types';
export declare abstract class StateFactory {
readonly source: string[];
protected readonly prefix: string[];
protected readonly postfix: string[];
protected constructor(source: string[], prefix: string, postfix: string);
test(fromIndex: number): number;
abstract createState(): State;
protected isPrefix(prefix: string[], fromIndex: number): boolean;
}
export declare abstract class State {
readonly segmentType: SegmentType;
protected readonly source: string[];
length: number;
protected constructor(segmentType: SegmentType, source: string[], length: number);
abstract visit(fromIndex: number): State | undefined;
protected isPrefix(prefix: string[], fromIndex: number): boolean;
}