import type { SkillInstallResult } from '../_vendored-contracts/skill-distribution.js'; import type { SafeShareScope } from '../safe-observation/store.js'; export interface InstallSkillOptions { slug: string; version?: string; /** Override api base url (defaults to config.apiBaseUrl) */ apiBaseUrl?: string; /** Override agent token (defaults to config.brainKey) */ agentToken?: string; /** Override skills root directory (defaults to ~/.skillfm/skills/) — useful in tests */ skillsRoot?: string; /** Override ~/.skillfm root for tests */ skillfmHome?: string; /** Optional SAFE upgrade guard: the bundle endpoint must advertise this sha256. */ expectedBundleSha256?: string; /** Install-time SAFE observation consent. Omitted means local-only observation. */ safeObservationConsent?: { decision: 'accepted' | 'declined'; uploadScope?: SafeShareScope; rewardPolicyRef?: string; }; } /** * Install a SkillFM official skill bundle. * Implements B1-B12 from SKILL-INSTALL-CALL-SEQUENCE.md §2.2. * * B12 (cleanup) is guaranteed via try/finally. * Returns SkillInstallResult. */ export declare function installSkill(opts: InstallSkillOptions): Promise; //# sourceMappingURL=index.d.ts.map