import type { RefResolver } from "./pin.js"; /** Options shared by the `writeOrLint` methods of workflows and actions. */ export interface WriteOrLintOptions { filePath: URL; header?: string; pinDeps?: boolean | { resolve: RefResolver; }; } /** * Writes the generated YAML to `options.filePath`, or with `--lint` compares it * against the file already there and exits non-zero when they differ. * * With `pinDeps` (the default), `uses:` references are pinned to commit hashes * on write, reusing the hashes recorded in the existing file unless * `--update-pins` is passed. */ export declare function writeOrLintYaml(expected: string, options: WriteOrLintOptions): void; /** * Gets if `writeOrLint` will lint the generated files instead of writing them * (`--lint`). Useful for skipping work in a script that only makes sense when * generating. */ export declare const isLinting: boolean; /** * Gets if `writeOrLint` will re-resolve every pinned action instead of reusing * the hashes in the existing file (`--update-pins`). */ export declare const isUpdatingPins: boolean; /** The command line flags that gagen reads. */ export declare const KNOWN_FLAGS: readonly string[]; /** * Exits with an error when the command line has a flag gagen does not know * about. * * Since gagen decides whether to write or lint from the process' flags, a * typo like `--lnit` would otherwise be indistinguishable from no flag at all * and would silently overwrite the generated files it was meant to check. */ export declare function assertKnownFlags(args?: readonly string[]): void; //# sourceMappingURL=write.d.ts.map