/** * YAML-based version source provider for pubspec.yaml and similar manifests. * * @packageDocumentation */ import type { VersionSourceProvider } from './provider'; /** * Reads and writes version strings from YAML manifest files. * * @remarks * Supports dotted key paths (e.g. `'flutter.version'`) for nested values. * Uses targeted regex replacement for writes to preserve comments and formatting. * * @public * @since 0.3.0 */ export declare class YamlVersionSource implements VersionSourceProvider { /** Human-readable provider name. */ readonly name: string; /** Filename of the YAML manifest (e.g. `'pubspec.yaml'`). */ readonly manifestFile: string; /** Dotted key path to the version field within the YAML document. */ private readonly versionKey; /** * Creates a new YAML version source. * * @param manifestFile - YAML manifest filename. * @param versionKey - Dotted key path to the version field. */ constructor(manifestFile?: string, versionKey?: string); /** * Returns `true` when the manifest file exists in `cwd`. * * @param cwd - Project directory to check. * @returns Whether the manifest file exists. */ exists(cwd: string): boolean; /** * Reads the version string from the YAML manifest. * * @param cwd - Project directory containing the manifest. * @returns The version string extracted from the manifest. */ getVersion(cwd: string): string; /** * Writes a version string to the YAML manifest, preserving formatting. * * @param version - Version string to write. * @param cwd - Project directory containing the manifest. */ setVersion(version: string, cwd: string): void; } //# sourceMappingURL=yaml.d.ts.map