import { RankedReportData } from 'source/types'; import { Stats } from 'browserslist'; /** * Finds the browserslist version that best matches the given version. * * @remarks * Deliberately returns null to signify an invalid version rather than a non existing one. * * @param version - The version to check for. * @param possibleVersions - The browserslist base versions to check against. * @returns Matched version or null. */ export declare function findVersion(version: string, possibleVersions: string[]): string | null; /** * Get the latest version of a browser. * * @param browser - Version to release data mapping for a browser. * @returns Latest version or undefined. */ export declare function getLatestVersion(browser: { [version: string]: number; }): string | undefined; /** * Extracts the browser name and version from a given string. * * @param raw - Raw broweser/version string. * @param allStats - All possible stats. * @returns Extracted browser and version. */ export declare function getBrowserVersion(raw: string, allStats: Stats): { browser: string; version?: string; } | undefined; /** * Transforms analytics data to the browserslist statistics format. * * @param response - The response from Adobe Analytics. * @returns Browserslist statistics data. */ export default function transformAnalyticsResponse(response: RankedReportData): Stats;