import type { CompanySearchResult } from './companySearch.types'; /** * Normalizes a registration number so values from the legal entity and from a search * provider can be compared robustly: case-insensitive, ignoring whitespace differences * (`12345678`, ` 12345678 ` and `1234 5678` all normalize the same way). */ export declare const normalizeRegistrationNumber: (registrationNumber: string) => string; /** * Whether two registration numbers refer to the same registration, tolerating case and * whitespace differences. Two absent values never match. */ export declare const isMatchingRegistrationNumber: (registrationNumber: string | undefined, otherRegistrationNumber: string | undefined) => boolean; /** * Finds the search result that refers to the same company as the legal entity, matching on * registration number. Returns `undefined` when no result matches and when more than one * does: applying provider data requires a single, unambiguous match. */ export declare const findMatchingCompanySearchResult: (results: readonly CompanySearchResult[] | undefined, registrationNumber: string | undefined) => CompanySearchResult | undefined;