/**
 * Shared lazy-import utilities for heavy optional dependencies.
 * Avoids duplicating the lazy-loading pattern across CLI modules.
 */
// ── QdrantClient ──────────────────────────────────────────────────────
let _QdrantClient = null;
/**
 * Lazy-load QdrantClient class. Saves ~100ms startup when Qdrant operations aren't needed.
 */
export async function getQdrantClientClass() {
    if (!_QdrantClient) {
        const mod = await import('@qdrant/js-client-rest');
        _QdrantClient = mod.QdrantClient;
    }
    return _QdrantClient;
}
// ── inquirer ──────────────────────────────────────────────────────────
let _inquirer;
/**
 * Lazy-load inquirer. Saves ~500ms startup when interactive prompts aren't needed.
 * Must be called (awaited) before any `inquirer.prompt()` usage.
 */
export async function ensureInquirer() {
    if (!_inquirer) {
        const mod = await import('inquirer');
        _inquirer = mod.default;
    }
    return _inquirer;
}
/**
 * Get the lazily-loaded inquirer instance. Throws if ensureInquirer() hasn't been called.
 */
export function getInquirer() {
    if (!_inquirer) {
        throw new Error('inquirer not loaded — call ensureInquirer() first');
    }
    return _inquirer;
}
//# sourceMappingURL=lazy-imports.js.map