/** * Calculate the calling signature for a given key: * ttl + stack + computeFn body * * Signature is used to invalidate the key in case of changes in the calling code. * Signature is computed on client and sent to the server. * Server compares the signature with the stored one and invalidates the key if they differ. */ import { TTL } from './ttl'; type SingatureParams = { fn: Function; stack: string; ttl?: TTL; }; export declare function calcSignature({ ttl, stack, fn }: SingatureParams): string; export declare function checkSignature(key: string, storedSigStr: string, currentSigStr: string): string | undefined; export {}; //# sourceMappingURL=sig.d.ts.map