UNPKG

@capgo/cli

Version:
24 lines (23 loc) 1.37 kB
import type { ExtConfigPairs } from '../schemas/config'; export type { CapacitorConfig, ExtConfigPairs } from '../schemas/config'; /** * Overrides the config file Capacitor writes after loading the active root config. * This lets dynamic monorepos keep their root loader while Capgo updates the * selected app-specific source config. */ export declare function setConfigWriteTarget(filePath?: string): void; export declare function getConfigWriteTarget(): string | undefined; /** * Uses a request-local config target so concurrent MCP tool calls cannot * redirect one another's writes while awaiting async work. */ export declare function withConfigWriteTarget<T>(filePath: string | undefined, action: () => T): T; export declare function resolveCapacitorConfigTargetPath(value: string | undefined, initialCwd?: string): string | undefined; export declare function loadConfig(): Promise<ExtConfigPairs | undefined>; /** * Loads the source file that will receive a config update. Normal reads must * continue through Capacitor's root loader so dynamic monorepos keep working. */ export declare function loadConfigForWrite(): Promise<ExtConfigPairs | undefined>; export declare function writeConfig(key: string, config: ExtConfigPairs, raw?: boolean): Promise<void>; export declare function writeConfigUpdater(config: ExtConfigPairs, raw?: boolean): Promise<void>;