/** * Keyboard Humanization Module * Simulates realistic keyboard behavior for 2024-2025 * * Features: * - Variable keystroke timing (faster for common patterns) * - Realistic key press/release timing gaps * - Shift key timing consistency * - Tab/Enter key natural delays * - CDP-level typing enhancement */ /** * Keyboard timing configuration */ interface KeyboardConfig { /** Base delay between keystrokes in ms */ baseDelay: number; /** Variance in delay (±ms) */ delayVariance: number; /** Delay between key press and release in ms */ pressReleaseDelay: number; /** Extra delay for special keys (Enter, Tab) */ specialKeyDelay: number; /** Delay when using shift key */ shiftDelay: number; } /** * Generate human-like typing delays for a string */ export declare const generateTypingDelays: (text: string, config?: Partial) => number[]; /** * Create a script that enhances keyboard events in the browser */ export declare const createKeyboardHumanizationScript: () => string; /** * CDP-level keyboard typing helper * Returns an async function that types text with human-like delays */ export declare const createHumanTypingFunction: (client: unknown, config?: Partial) => Promise<(text: string) => Promise>; /** * Setup keyboard humanization at CDP level */ export declare const setupKeyboardHumanization: (client: unknown) => Promise; export {}; //# sourceMappingURL=keyboard-humanization.d.ts.map