UNPKG

@hazae41/kdbx

Version:

Rust-like KeePass (KDBX 4) file format for TypeScript

20 lines (19 loc) 680 B
import type { Cursor } from "@hazae41/cursor"; export type Compression = typeof Compression.None | typeof Compression.Gzip; export declare namespace Compression { namespace None { const type = 0; function cloneOrThrow(): typeof None; function sizeOrThrow(): number; function writeOrThrow(cursor: Cursor<ArrayBuffer>): void; } namespace Gzip { const type = 1; function cloneOrThrow(): typeof Gzip; function sizeOrThrow(): number; function writeOrThrow(cursor: Cursor<ArrayBuffer>): void; } } export declare namespace Compression { function readOrThrow(cursor: Cursor<ArrayBuffer>): Compression; }