// Minimal earlyInput — only used by App.tsx for draining pre-render input
const _captured = [];
let _capturing = false;
export function startCapturingEarlyInput() { _capturing = true; }
export function stopCapturingEarlyInput() { _capturing = false; }
export function consumeEarlyInput() {
    const result = [..._captured];
    _captured.length = 0;
    return result;
}
export function lastGrapheme(text) {
    return text.slice(-1);
}
//# sourceMappingURL=utils-earlyInput.js.map