export type MutationResult = { ok: true; } | { ok: false; reason: string; }; /** * Toggle a native skill through the authoritative policy contract. Returns * the updated `disabledExtensions` list; the caller persists it via Settings. * Bundled workflow skill names cannot be disabled. */ export declare function setSkillEnabled(name: string, enabled: boolean, disabledExtensions: string[]): MutationResult & { disabledExtensions?: string[]; }; /** * Remove a native skill by its exact discovered SKILL.md path identity. * Fails when the discovered file is absent, refuses symlinked directories or * files, and never removes protected bundled workflow skill names. */ export declare function removeSkill(record: { name: string; path: string; }): Promise; /** Toggle a server through the canonical disabledServers denylist. */ export declare function setMcpServerEnabled(mcpConfigPath: string, name: string, enabled: boolean, disabledExtensions?: string[]): Promise; /** Remove a server via the canonical config writer. */ export declare function removeMcpServerEntry(mcpConfigPath: string, name: string): Promise; /** * Remove a hook by its exact discovered path. Refuses symlinks, non-files, * and paths that do not exist (no silent success). */ export declare function removeHookFile(hookPath: string): Promise;