@ertekinno/human-like
Version:
A sophisticated React typewriter effect library with realistic human typing behavior, mobile/desktop keyboards, and comprehensive theming support
51 lines (50 loc) • 2.13 kB
TypeScript
import { HumanLikeConfig } from '../types';
export declare const TIMING_CONSTANTS: {
readonly BASE_SPEED: 80;
readonly SPEED_VARIATION: 40;
readonly MIN_CHAR_DELAY: 25;
readonly SENTENCE_PAUSE: 500;
readonly COMMA_PAUSE: 200;
readonly WORD_SPACE: 150;
readonly LINE_BREAK: 800;
readonly REALIZATION_DELAY: 300;
readonly CORRECTION_PAUSE: 250;
readonly BACKSPACE_SPEED: 60;
readonly THINKING_PAUSE: 400;
readonly FATIGUE_INCREMENT: 0.5;
readonly BURST_SPEED_MULTIPLIER: 0.6;
readonly CONCENTRATION_PAUSE: 800;
readonly SHIFT_HESITATION: 100;
readonly CAPS_LOCK_ON_DELAY: 150;
readonly CAPS_LOCK_OFF_DELAY: 100;
readonly CAPS_SEQUENCE_THRESHOLD: 3;
readonly NUMBER_ROW_PENALTY: 35;
readonly SYMBOL_BASE_PENALTY: 25;
readonly LOOK_AHEAD_CHANCE: 0.08;
};
export declare const BEHAVIOR_RATES: {
readonly MISTAKE_FREQUENCY: 0.03;
readonly CONCENTRATION_LAPSE: 0.03;
readonly BURST_TYPING: 0.15;
readonly FATIGUE_FACTOR: 0.0001;
readonly OVERCORRECTION_RATE: 0.2;
};
export declare const DESKTOP_ADJACENT: Record<string, string[]>;
export declare const MOBILE_ADJACENT: Record<string, string[]>;
export declare const QWERTY_ADJACENT: Record<string, string[]>;
export declare function getAdjacentKeys(keyboardMode: 'mobile' | 'desktop'): Record<string, string[]>;
export declare const COMMON_WORDS: Set<string>;
export declare const COMMON_TYPOS: Record<string, string>;
export declare const SPECIAL_CHARS: Set<string>;
export declare const SHIFT_CHARS: Set<string>;
export declare const NUMBER_CHARS: Set<string>;
export declare const SYMBOL_COMPLEXITY: Record<string, number>;
export declare const SENTENCE_ENDINGS: Set<string>;
export declare const CLAUSE_SEPARATORS: Set<string>;
export declare const LINE_BREAK_CHARS: Set<string>;
export declare const DEFAULT_CONFIG: HumanLikeConfig;
export declare const LETTER_FREQUENCY: Record<string, number>;
export declare const VOWELS: Set<string>;
export declare const LEFT_HAND_KEYS: Set<string>;
export declare const RIGHT_HAND_KEYS: Set<string>;
//# sourceMappingURL=index.d.ts.map