import type { Logger } from './logger'; import type { PackageFile, PackageUpdate, UpdateGroup } from '../types'; /** * Parse package file content based on file type */ export declare function parsePackageFile(content: string, filePath: string): Promise; /** * Detect package manager based on lock files and configuration */ export declare function detectPackageManager(_projectPath: string): 'bun' | 'npm' | 'yarn' | 'pnpm'; /** * Format commit message for dependency updates */ export declare function formatCommitMessage(updates: PackageUpdate[], template?: string): string; /** * Format pull request title */ export declare function formatPRTitle(updates: PackageUpdate[], template?: string): string; /** * Format pull request body with update details */ export declare function formatPRBody(updates: PackageUpdate[], template?: string): string; /** * Generate branch name for dependency updates */ export declare function generateBranchName(updates: PackageUpdate[], prefix?: any): string; /** * Group updates based on configuration and type */ export declare function groupUpdates(updates: PackageUpdate[]): UpdateGroup[]; /** * Sort updates by priority (major > minor > patch) */ export declare function sortUpdatesByPriority(updates: PackageUpdate[]): PackageUpdate[]; /** * Parse version string and determine update type using Bun's semver */ export declare function getUpdateType(currentVersion: string, newVersion: string): 'major' | 'minor' | 'patch'; /** * Check if version satisfies semver range */ export declare function satisfiesRange(version: string, range: string): boolean; /** * Check for PRs that have the rebase checkbox checked */ export declare function checkForRebaseRequests(token: string, owner: string, repo: string): Promise>; /** * Extract package names from PR body */ export declare function extractPackageNamesFromPRBody(body: string): string[]; /** * Check if a PR should be auto-closed due to configuration changes * This handles cases where: * 1. respectLatest config changed from false to true, making dynamic version updates invalid * 2. ignorePaths config changed to exclude paths that existing PRs contain updates for */ export declare function checkForAutoClose(pr: any, config: any, logger: Logger): Promise;