ink
Version:
React for CLI
11 lines (10 loc) • 310 B
TypeScript
export type InputEvent = string | {
readonly paste: string;
};
export type InputParser = {
push: (chunk: string) => InputEvent[];
hasPendingEscape: () => boolean;
flushPendingEscape: () => string | undefined;
reset: () => void;
};
export declare const createInputParser: () => InputParser;