/** * The Forgejo dialect of the three generated pipelines (#3765). Each forgejo * generator builds github's document and hands it here: action refs and * runner labels rewritten ({@link transformWorkflowObject}), `permissions:` * dropped (the runner reads none), and a job's `environment:` dropped with a * header note naming it, since Forgejo Actions has no environments. */ import type { GithubOpPipelineDoc } from "@intentius/chant-lexicon-github/components/generate-op-pipeline"; import { type ForgejoDialectOptions } from "../dialect.js"; /** Apply the Forgejo dialect to one section of a pipeline doc. */ export declare function forgejoize(value: Record, dialect: ForgejoDialectOptions): Record; /** * Strip each job's `environment:` (#2257). Forgejo Actions has no * environments, so the key would read as a deployment gate and hold nothing * back. Dropped here rather than in the dialect's own `DROPPED_KEYS`, so it * touches the generated pipelines alone and leaves every other document the * dialect transforms as it is. */ export declare function withoutEnvironment(jobsDoc: Record): Record; /** The header of an Op's workflow whose environment gate did not survive the crossing. */ export declare function droppedEnvironmentHeader(environmentName: string): string[]; /** The header of an Op waves workflow, naming each wave whose environment was dropped as `wave -> environment`. */ export declare function droppedWaveEnvironmentsHeader(dropped: readonly string[]): string[]; /** * The token a Forgejo job uses for what the job token cannot do, such as * dispatching a workflow: the `CHANT_FORGE_TOKEN` secret, a token with the * `write:repository` scope. */ export declare const FORGE_TOKEN_ENV: { CHANT_FORGE_TOKEN: string; }; /** * A github workflow document under the Forgejo dialect: every section * transformed, each job's `environment:` dropped, `permissions:` emptied, and * `header` above it when given. */ export declare function forgejoWorkflowDoc(doc: GithubOpPipelineDoc, dialect: ForgejoDialectOptions, header?: string[]): GithubOpPipelineDoc; //# sourceMappingURL=ci-jobs.d.ts.map