/** * Returns true when \`@needle-tools/engine\` is installed as a local package * (i.e. it has its own nested `node_modules`). Vite's optimiser must skip such * packages, otherwise it tries to pre-bundle source that was never meant to be * pre-bundled and fails at dev-server start. * * @param {string} [root] – project root; defaults to `process.cwd()`. * @returns {boolean} */ export function isLocalNeedleEngineInstalled(root?: string): boolean; /** * @param {"build" | "serve"} command * @param {import('../types/needleConfig').needleMeta | null | undefined} config * @param {import('../types').userSettings} userSettings * @returns {import('vite').Plugin[]} */ export function needleDependencies(command: "build" | "serve", config: import("../types/needleConfig").needleMeta | null | undefined, userSettings: import("../types").userSettings): import("vite").Plugin[]; /** * Resolves the module entry point of the installed `@needle-tools/engine` package to an * absolute, symlink-resolved path — or null when the package (or its entry) is missing. * * @param {string} [root] – project root; defaults to `process.cwd()`. * @returns {string | null} */ export function resolveNeedleEngineEntry(root?: string): string | null; /** * @type {string[]} */ export const preloadScriptPaths: string[];