import { CrawlConfig, CrawlerProcess, CrawledRelease, Deprecation } from './models'; import { Options as PrettierOptions } from 'prettier'; export declare function getSiblingPgkJson(pathOrFile: string): { version: string; homepage?: string; repository?: { url: string; }; }; export declare const git: import("simple-git").SimpleGit; export declare function proxyMethodToggles(obj: T, methodNames: string[], condition: () => boolean): T; export declare function hash(str: string): string; export declare function ensureDirExists(dir: string): void; export declare function updateRepoConfig(config: CrawlConfig): void; export declare function readRepoConfig(): CrawlConfig; export declare function readRawDeprecations(config: CrawlConfig): { deprecations: Deprecation[]; path: string; }; export declare function writeRawDeprecations(deprecations: Deprecation[], config: CrawlConfig): void; export declare function semverSort(semvers: any[], asc: boolean, pick?: (v: any) => string): any[]; /** * Check for path params from cli command */ export declare function getConfigPath(): string; /** * Check for path params from cli command */ export declare function getInteractive(): boolean; /** * Check for verbose params from cli command */ export declare function getVerboseFlag(): boolean; export declare function logVerbose(message: string, enforceLog?: boolean): void; /** * Check for version params from cli command */ export declare function getVersion(): string; export declare function formatCode(code: string, parser?: PrettierOptions['parser']): string; /** * Ensures the file exists before reading it */ export declare function readFile(path: string): string; /** * Upper camelCase to lowercase, hypenated */ export declare function toFileName(s: string): string; export declare function getCliParam(names: string[]): string | false; export declare function run(tasks: ((config: CrawlConfig) => CrawlerProcess)[], config: CrawlConfig): CrawlerProcess; export declare function concat(processes: CrawlerProcess[]): CrawlerProcess; export declare function tap(process: CrawlerProcess): CrawlerProcess; export declare function askToSkip(question: string, crawlerProcess: CrawlerProcess, options?: { precondition?: (r: CrawledRelease) => Promise; }): CrawlerProcess; export declare function getCurrentHeadName(): Promise; /** * @description Get all the tags for a given branch. * * @return - List of git tags. * @throws - If the `git` command fails. */ export declare function getTags(branch: any): Promise; export declare function getCurrentBranchOrTag(): Promise; export declare function branchHasChanges(): Promise; export declare function getFilesWithInsertionWithin2Hashes(diffConfig: { from: string; to: string; }): Promise; export declare function getRemoteUrl(): Promise; export declare function createCrawlerTsConfig(config: CrawlConfig): string; export declare function deleteCrawlerTsConfig(_config: CrawlConfig): void; export declare function getCrawlerMode(): string; export declare function isCrawlerModeSandbox(): boolean; export declare function isCrawlerModeCi(): boolean; /** * Feature toggles for different modes */ export declare const toggles: { autoAnswerQuestions: boolean; executeGitCommands: boolean; }; export declare const SERVER_REGEX: RegExp; export declare const MAJOR_SERVER_REGEX: RegExp; export declare const MAJOR_MINOR_SERVER_REGEX: RegExp;