import { type RememAppConfig } from "../storage/config-file.js"; import { type RememPaths } from "../storage/paths.js"; import { type ProcessRunner } from "./process.js"; export interface CliDependencies { paths?: RememPaths; runner?: ProcessRunner; stdout?: (line: string) => void; stderr?: (line: string) => void; operationLockHeld?: boolean; } export declare const BACKUP_FLAGS: readonly ["--format=custom", "--no-owner", "--schema=remem"]; export declare const RESTORE_FLAGS: readonly ["--clean", "--if-exists", "--no-owner", "--schema=remem", "--single-transaction", "--exit-on-error"]; export type OpenCodeHostVersion = "v1" | "v2"; /** * Adds Remem to the plugin array used by the selected OpenCode host API. * OpenCode v1.18.27 reads `plugin` (singular) and resolves this package's * `./server` export; v2 reads `plugins` (plural) and loads the package root. */ export declare function configureOpenCode(configPath: string, hostVersion?: OpenCodeHostVersion): Promise; /** * Configures remem as a Pi package by adding this package's own installed * root directory to Pi's global `packages` setting (`~/.pi/agent/settings.json` * by default). Pi auto-discovers `pi.extensions` from `package.json` for a * local-path package (see docs/pi-integration.md), so this does not need to * know about `dist/hosts/pi/index.js` directly. Additive: preserves any * existing settings and package entries. */ export declare function configurePi(settingsPath: string): Promise; export declare function warnAboutNeuralDownload(config: Pick, output: (line: string) => void): void; export declare function runCli(args: string[], dependencies?: CliDependencies): Promise;