/** * Generates a SHA-1 hash of a given string or Buffer and returns it as a Base64-encoded string. * * Useful for checksum validation, content fingerprinting, or creating short deterministic identifiers. * * SHA-1 is considered **cryptographically weak** and should not be used for security-sensitive * operations (like password hashing or digital signatures). For those, prefer SHA-256. * * @param content - The input content (string or Buffer) to hash. * @returns The Base64-encoded SHA-1 hash string. * * @example * sha1('hello'); // returns 'qvTGHdzF6KLavt4PO0gs2a6pQ00=' * * @example * sha1(Buffer.from('hello')); // also returns 'qvTGHdzF6KLavt4PO0gs2a6pQ00=' */ export declare function sha1(content: string | Buffer): string; //# sourceMappingURL=sha1.d.ts.map