import { type Fs } from "webappwiz/system"; /** * Where the stub lives. The name is fixed because npm's trusted publisher * entry for each package names this file. */ export declare const PUBLISH_WORKFLOW_PATH = ".github/workflows/webappwiz-publish.yml"; /** What a `PublishWorkflow` reads and writes through; the real filesystem by default. */ export interface PublishWorkflowOptions { /** The command the job runs to publish, such as `bunx @webappwiz/cli ship publish`. */ command: string; fs?: Fs; } /** * The GitHub Actions workflow that publishes a release from a job npm trusts. * It is generated and holds no package list: it checks out the release commit * and runs the declaration's own publish-only mode, so the `Release` stays the * one place that says what ships. Commit it like a lockfile; a release writes * it when it is missing or stale, and `check` fails on drift. */ export declare class PublishWorkflow { private readonly command; private readonly fs; constructor(opts: PublishWorkflowOptions); /** The workflow file's whole text. */ text(): string; /** What is wrong with the file under `root`, or `undefined` when it is current. */ drift(root: string): Promise<"missing" | "stale" | undefined>; /** Writes the file under `root` when it is missing or stale; whether it wrote. */ write(root: string): Promise; /** Throws when the file under `root` is missing or stale. */ check(root: string): Promise; }