import { r as createLazyRuntimeModule } from "./lazy-runtime-B-Fc-m0I.js";
import { c as normalizeE164 } from "./utils-d4Gq0rDX.js";
import { i as loadConfig } from "./io-BiQKixNz.js";
import "./config-M0FjxSFC.js";
import { i as handlePortError, n as describePortOwner, r as ensurePortAvailable, t as PortInUseError } from "./ports-D5j0ZljD.js";
import { l as resolveStorePath } from "./paths-CPV1Wjwt.js";
import { i as saveSessionStore, u as loadSessionStore } from "./store-BWa9kagF.js";
import { n as resolveSessionKey, t as deriveSessionKey } from "./session-key-COwMhgKq.js";
import { t as applyTemplate } from "./templating-CLmjS51i.js";
import { t as createDefaultDeps } from "./deps-D6ud1x89.js";
//#region src/cli/wait.ts
function waitForever() {
	setInterval(() => {}, 1e6);
	return new Promise(() => {});
}
//#endregion
//#region src/library.ts
const loadReplyRuntime = createLazyRuntimeModule(() => import("./reply.runtime.js"));
const loadPromptRuntime = createLazyRuntimeModule(() => import("./prompt-e05aFTIL.js"));
const loadBinariesRuntime = createLazyRuntimeModule(() => import("./binaries-BsGhv-e3.js"));
const loadExecRuntime = createLazyRuntimeModule(() => import("./exec-D04G-OTq.js"));
const loadWebChannelRuntime = createLazyRuntimeModule(() => import("./runtime-web-channel-plugin-DRKNzvtM.js"));
const getReplyFromConfig = async (...args) => (await loadReplyRuntime()).getReplyFromConfig(...args);
const promptYesNo = async (...args) => (await loadPromptRuntime()).promptYesNo(...args);
const ensureBinary = async (...args) => (await loadBinariesRuntime()).ensureBinary(...args);
const runExec = async (...args) => (await loadExecRuntime()).runExec(...args);
const runCommandWithTimeout = async (...args) => (await loadExecRuntime()).runCommandWithTimeout(...args);
const monitorWebChannel = async (...args) => (await loadWebChannelRuntime()).monitorWebChannel(...args);
//#endregion
export { PortInUseError, applyTemplate, createDefaultDeps, deriveSessionKey, describePortOwner, ensureBinary, ensurePortAvailable, getReplyFromConfig, handlePortError, loadConfig, loadSessionStore, monitorWebChannel, normalizeE164, promptYesNo, resolveSessionKey, resolveStorePath, runCommandWithTimeout, runExec, saveSessionStore, waitForever };
