import { type PathCtx } from '../config/paths.js'; import { type Account, type Registry } from './registry.schema.js'; export declare function registryFilePath(c?: PathCtx): string; export declare function loadRegistry(c?: PathCtx): Registry; export declare function saveRegistry(registry: Registry, c?: PathCtx): void; export declare function listAccounts(c?: PathCtx): Account[]; export declare function getAccount(name: string, c?: PathCtx): Account | undefined; export interface AddAccountInput { name: string; dir: string; priority?: number; enabled?: boolean; plan?: string; email?: string; browserProfile?: string; } /** Register a new account. Throws RegistryError if the name already exists. */ export declare function addAccount(input: AddAccountInput, c?: PathCtx): Account; /** Patch an account in place. The name is immutable. Throws if not found. */ export declare function updateAccount(name: string, patch: Partial, c?: PathCtx): Account; /** Deregister an account. Throws if not found. Does not touch its profile folder. */ export declare function removeAccount(name: string, c?: PathCtx): void;