/** * Dependabot configuration generation from detected project manifests. * * @packageDocumentation */ import type { ManifestSourceType } from '../types'; /** * Maps VersionGuard manifest source types to Dependabot package-ecosystem values. * * @remarks * Returns `null` for sources that have no Dependabot equivalent (VERSION files, * git tags, custom regex). The `auto` source is resolved at detection time, * not mapped directly. * * @public * @since 0.9.0 */ export declare const MANIFEST_TO_ECOSYSTEM: Record; /** * Generates Dependabot YAML configuration from detected manifests. * * @remarks * Each detected manifest is mapped to its Dependabot ecosystem. A * `github-actions` entry is always appended since any GitHub-hosted * project benefits from action version updates. * * @param manifests - Detected manifest source types from the project. * @returns The Dependabot configuration as a YAML string. * * @example * ```ts * import { generateDependabotConfig } from 'versionguard'; * * const config = generateDependabotConfig(['package.json', 'Cargo.toml']); * ``` * * @public * @since 0.9.0 */ export declare function generateDependabotConfig(manifests: ManifestSourceType[]): string; /** * Writes a Dependabot configuration file to `.github/dependabot.yml`. * * @remarks * Creates the `.github` directory if it does not exist. Overwrites any * existing `dependabot.yml` with the supplied content. * * @param cwd - Project directory. * @param content - YAML content to write. * @returns The absolute path to the created file. * * @example * ```ts * import { writeDependabotConfig } from 'versionguard'; * * const filePath = writeDependabotConfig(process.cwd(), 'version: 2\nupdates: []\n'); * ``` * * @public * @since 0.9.0 */ export declare function writeDependabotConfig(cwd: string, content: string): string; /** * Checks whether `.github/dependabot.yml` exists in the project. * * @remarks * Used during init to avoid overwriting a user-managed Dependabot config. * * @param cwd - Project directory. * @returns `true` when the file exists. * * @example * ```ts * import { dependabotConfigExists } from 'versionguard'; * * if (!dependabotConfigExists(process.cwd())) { * console.log('No Dependabot config found'); * } * ``` * * @public * @since 0.9.0 */ export declare function dependabotConfigExists(cwd: string): boolean; //# sourceMappingURL=dependabot.d.ts.map