export interface DocumentHtmlFingerprintSegment {
hash: number;
length: number;
power: number;
}
/**
* Hashes one HTML segment with a polynomial that can be combined without
* rescanning unchanged prefixes and suffixes.
*/
export declare function createDocumentHtmlFingerprintSegment(source: string, from?: number, to?: number): DocumentHtmlFingerprintSegment;
export declare function combineDocumentHtmlFingerprintSegments(segments: Iterable): DocumentHtmlFingerprintSegment;
export declare function documentHtmlFingerprintForSegment(segment: DocumentHtmlFingerprintSegment): string;
export declare function documentHtmlFingerprint(html: string): string;
/** Accepts fingerprints written before composable document hashing shipped. */
export declare function documentHtmlFingerprintMatches(html: string, candidate: string): boolean;