const requireNodeModule = (moduleName) => {
    if (typeof window !== 'undefined' && typeof window.require === 'function') {
        return (window.require)(moduleName);
    }
    throw new Error(`Node.js module "${moduleName}" is not available. Ensure nodeIntegration is enabled.`);
};
const mod = requireNodeModule('node:readline');
export default mod;
export const createInterface = mod.createInterface;
export const clearLine = mod.clearLine;
export const clearScreenDown = mod.clearScreenDown;
export const cursorTo = mod.cursorTo;
export const emitKeypressEvents = mod.emitKeypressEvents;
export const moveCursor = mod.moveCursor;
