export declare function resolveVersion(pkg: string, version?: string): Promise;