1
|
import * as i18n from './i18n_ast';
|
2
|
export declare function digest(message: i18n.Message): string;
|
3
|
export declare function decimalDigest(message: i18n.Message): string;
|
4
|
export declare function serializeNodes(nodes: i18n.Node[]): string[];
|
5
|
/**
|
6
|
* Compute the SHA1 of the given string
|
7
|
*
|
8
|
* see http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf
|
9
|
*
|
10
|
* WARNING: this function has not been designed not tested with security in mind.
|
11
|
* DO NOT USE IT IN A SECURITY SENSITIVE CONTEXT.
|
12
|
*/
|
13
|
export declare function sha1(str: string): string;
|
14
|
/**
|
15
|
* Compute the fingerprint of the given string
|
16
|
*
|
17
|
* The output is 64 bit number encoded as a decimal string
|
18
|
*
|
19
|
* based on:
|
20
|
* https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/GoogleJsMessageIdGenerator.java
|
21
|
*/
|
22
|
export declare function fingerprint(str: string): [number, number];
|
23
|
export declare function computeMsgId(msg: string, meaning: string): string;
|