13 lines
391 B
TypeScript
13 lines
391 B
TypeScript
|
/// <reference types="node" />
|
||
|
export declare const STORAGE_DIR = ".tcss";
|
||
|
export declare const CRYPTO_DIR = ".tcpk";
|
||
|
export declare enum FILE_TYPE {
|
||
|
STORAGE = 0,
|
||
|
NONCE = 1,
|
||
|
AUTH_TAG = 2,
|
||
|
PRIVATE_KEY = 3,
|
||
|
PASSPHRASE = 4
|
||
|
}
|
||
|
export declare function load(type: FILE_TYPE): Promise<Buffer>;
|
||
|
export declare function save(type: FILE_TYPE, data: string | Buffer): Promise<void>;
|