/** * High-level helper for opening a sim session from a `mikro sim *` command. * * - Long-lived commands (`sim dev`, `sim repl`) pass `claim: true` to write * the pid file and kill any predecessor. * - Short-lived commands (`sim deploy`, `sim test`, `sim env`, `sim profile`, * `sim clean`, `sim reset`) pass `claim: false` (the default) to refuse if * a sim is already running. * * Loads the project's `mikro.config.ts` (if any) to resolve the sim section, * then connects via `connectSim`. */ import { type SimConnection } from './connectSim.js'; import { type ResolvedSimConfig } from './simConfig.js'; export interface OpenSimOptions { /** Long-lived command: claim the pid file (kills predecessor). Default false. */ claim?: boolean; /** Directory to start `mikro.config.ts` lookup from. Defaults to cwd. */ startDir?: string; /** Override mem limit. Used by `mikro sim profile` for its high ceiling. */ memLimitOverride?: number; /** Path to project directory containing `sim/` stub overrides. */ simDir?: string; } export interface OpenSimResult extends SimConnection { sim: ResolvedSimConfig; } export declare function openSim(options?: OpenSimOptions): Promise; //# sourceMappingURL=openSim.d.ts.map