export interface PISpawnOptions { sessionDir: string; /** Session UUID for --session flag. PI scans --session-dir to find the matching file * by filename or internal session id field — no need for the full file path. */ sessionId?: string | null; /** @deprecated Full path to an existing PI session JSONL file. Prefer sessionId * which lets PI handle session lookup internally. Kept for backward compat. */ sessionPath?: string | null; /** Model identifier (e.g. "deepseek-v4-flash[1m]"); context-window suffix is stripped. */ model?: string | null; /** PI provider name (e.g. "anthropic", "deepseek", "openai-codex"). When set together with model, * emits `--provider `. When omitted, PI infers provider from model name prefix or its default. * Sourced from the cortex profile's `mode` field at adapter-spawn time. */ provider?: string | null; systemPrompt?: string | null; /** Single string or multi-value array; pi args.js:49-51 accepts repeated --append-system-prompt flags. */ appendSystemPrompt?: string | string[] | null; pluginDirs?: string[] | null; /** PI extension file paths; each emits a repeated --extension flag (pi args.js:95-98). */ extensionPaths?: string[] | null; /** Extra CLI options from profile (e.g. {"--thinking": "xhigh"}). */ extraOption?: Record | null; } export declare function buildSpawnArgs(opts: PISpawnOptions): string[];