export declare const PIONEER_PACKAGE_NAME = "@rock3r/pioneer"; export declare const PIONEER_PACKAGE_REGISTRY = "https://registry.npmjs.org/"; export interface UpdateCheckState { readonly schemaVersion: 1; readonly checkedAt: number; readonly latestVersion?: string; } export interface UpdateStateStore { read(): Promise; write(state: UpdateCheckState): Promise; } export interface UpdateCheckResult { readonly checked: boolean; readonly latestVersion?: string; readonly updateAvailable: boolean; } export interface UpdateCheckOptions { readonly currentVersion: string; readonly now?: number; readonly force?: boolean; readonly store?: UpdateStateStore; readonly lookup?: () => Promise; } export type NpmCommandRunner = (command: string, args: readonly string[]) => Promise; export declare function trustedNpmEnvironment(source?: NodeJS.ProcessEnv, home?: string, nodeExecutable?: string, platform?: NodeJS.Platform): NodeJS.ProcessEnv; export declare function npmCliCommand(args: readonly string[], nodeExecutable?: string, platform?: NodeJS.Platform): readonly [string, ...string[]]; export declare function systemNpmCliPaths(platform?: NodeJS.Platform): readonly string[]; export declare function withIsolatedNpmConfig(run: (configArguments: readonly [string, string], cwd: string) => Promise): Promise; export declare function isNewerVersion(candidate: string, current: string): boolean; export declare function updateCachePath(environment?: NodeJS.ProcessEnv): string; export declare function fileUpdateStateStore(cachePath?: string): UpdateStateStore; export declare function runTrustedNpm(args: readonly string[]): Promise; export declare function fetchLatestVersionFromNpm(run?: NpmCommandRunner): Promise; export declare function checkForUpdate(options: UpdateCheckOptions): Promise; //# sourceMappingURL=update-check.d.ts.map