import { type Fs } from "webappwiz/system"; import type { Artifact, Stage } from "./artifact/artifact.js"; import type { Cut } from "./cut.js"; /** What a `SkillArtifact` reads and writes through; the real filesystem by default. */ export interface SkillArtifactOptions { fs?: Fs; } /** * An agent skill whose frontmatter carries the version it shipped at. Its * stage is what makes the number true: the stamp goes into the release commit * beside every package.json, so the document a build bundles says the version * that bundled it. * * It publishes no package of its own, so it does not appear in what a release * says it will send. */ export declare class SkillArtifact implements Artifact { /** The document, relative to the workspace root or absolute. */ private readonly path; readonly packages: readonly string[]; readonly stage: Stage; private readonly fs; constructor( /** The document, relative to the workspace root or absolute. */ path: string, opts?: SkillArtifactOptions); publish(cut: Cut): Promise; }