1/* 2 * Copyright (c) 2022-2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import { int32 } from "#koalaui/compat"; 17export declare function createSha1(): SHA1Hash; 18export declare class SHA1Hash { 19 private A; 20 private B; 21 private C; 22 private D; 23 private E; 24 private readonly _byte; 25 private readonly _word; 26 private _size; 27 private _sp; 28 constructor(); 29 updateString(data: string, encoding?: string): SHA1Hash; 30 updateInt32(data: int32): SHA1Hash; 31 update(data: Int32Array | Float32Array | Uint32Array | Uint8Array): SHA1Hash; 32 private _uint8; 33 private _utf8; 34 private _int32; 35 digest(encoding?: string): Uint8Array | string; 36 private _hex; 37 private _bin; 38} 39//# sourceMappingURL=sha1.d.ts.map