import { type PackageManager } from "./ensure-playwright.js"; export type ProjectKind = "shipvo" | "expo" | "react-native" | "capacitor" | "unknown"; export declare const BEGIN = ""; export declare const END = ""; export declare const SKILL_LINE = "npx skills add shipvo/shipvo --skill shipvo -g"; /** What kind of app lives in `dir`. A shipvo.json wins; then Capacitor, Expo, bare React Native. */ export declare function detectProject(dir: string): ProjectKind; /** The text between (and including) our markers. */ export declare function agentsSection(kind: ProjectKind): string; /** Put `section` between the markers. Text outside the markers is never changed. Returns null when the markers are broken (one missing, or END before BEGIN). */ export declare function upsertSection(text: string, section: string): string | null; export type McpServerEntry = { command: string; args: string[]; env?: Record; }; /** The sim port from shipvo.json (`simPort`), else 4545. */ export declare function simUrl(dir: string): string; /** The version of @shipvo/mcp installed in the app, or null. */ export declare function installedMcpVersion(dir: string): string | null; /** The local file the server entry runs, relative to the app, with `/` separators. The path goes through `node_modules/@shipvo/mcp` (the link), not the real package folder, so it survives upgrades under pnpm. */ export declare function localServerPath(dir: string): string | null; /** The `shipvo` server entry. Default: run the installed file with node (no shell, no npm check). `npx`: a pinned npx command. */ export declare function serverEntry(dir: string, opts?: { npx?: boolean; version?: string | null; path?: string | null; }): McpServerEntry; /** The add command per package manager for `@shipvo/mcp` as a dev dependency. */ export declare function mcpInstallCommand(pm: PackageManager): { cmd: string; args: string[]; }; /** Add the `shipvo` server to a `.mcp.json` style file and keep every other server and key. Returns null if the file is not valid JSON. */ export declare function mergeMcp(text: string | null, entry?: McpServerEntry): string | null; /** Where synced skills are copied to, relative to the project. */ export declare const SKILL_DIRS: string[]; export type SkillEntry = { package: string; name: string; source: string; }; /** Skills shipped by the `@shipvo/*` packages this project depends on and has installed. */ export declare function projectSkills(dir: string): SkillEntry[]; /** For `status --json`: each package skill and whether every target holds the current copy. */ export declare function skillStatus(dir: string): { package: string; name: string; synced: boolean; }[]; /** `shipvo agents setup [--dry-run] [--json]`. Exit 0 done, 2 error. */ export declare function agentsCmd(argv: string[], dir?: string, home?: string, pathVar?: string | undefined, deps?: { run?: (cmd: string, args: string[], cwd: string) => void; creds?: () => { key: string; mcp_url: string; } | null; login?: () => Promise<{ key: string; mcp_url: string; } | null>; }): Promise;