import type { AnalyzeInput, JsonObject, DiffStatFile } from './types.js'; export declare const BINARY_CHECK_BYTES = 8192; export declare const MAX_SCAN_FILES = 500; export declare const MAX_SCAN_MS = 5000; export declare const ANALYZE_SUMMARY_SAMPLE_LIMIT = 5; export declare function isBinary(filePath: string): Promise; export declare function collectTextFiles(dirPath: string, limit?: number, deadline?: number): Promise; export declare function escapeRegex(s: string): string; export declare function validatePath(inputPath: string, root: string): string | { error: string; }; export declare function readTextFile(filePath: string): Promise; export declare function collectInputFiles(inputFiles: string[] | undefined, projectRoot: string, options?: { expandDirectories?: boolean | undefined; limit?: number | undefined; deadline?: number | undefined; }): Promise; export declare function sampleArray(value: unknown, limit?: number): T[]; export declare function summarizeAnalyzeResult(mode: AnalyzeInput['mode'], result: Record): Record; export declare function applyAnalyzeTokenBudget(output: string, maxTokens: number | undefined): string; export declare function readJsonFile(filePath: string): Promise; export declare function resolveScanRoot(input: AnalyzeInput, projectRoot: string): string; export declare function collectExistingPaths(projectRoot: string, names: string[]): string[]; export declare function loadDependencyVersions(pkgJson: JsonObject): Record; export declare function parseDiffStats(statOutput: string): DiffStatFile[]; export declare function findEntryPoint(targetDir: string, candidates: string[]): string | null; export declare function validateGitRefs(before: string, after: string): { error: string; before: string; after: string; } | null; export declare function truncateDiffAtBoundary(diff: string, maxChars: number): string; export declare function parseSemver(version: string): [number, number, number]; export declare function isBreakingUpgrade(current: string, latest: string): boolean; export declare function parseEnvKeys(content: string): Set; export declare function testCandidates(sourceFile: string, projectRoot: string): string[]; //# sourceMappingURL=shared.d.ts.map