import * as crypto from 'crypto'; import * as stream from 'stream'; type Callback = (err?: Error) => void; export default class CipherStream extends stream.Transform { cipher: crypto.Cipher; hexIv: Buffer; ivAppended: boolean; constructor(password: Buffer, aesAlgorithm: string, ivSize: number); _flush(callback: Callback): void; _transform(chunk: Buffer, _encoding: string, callback: Callback): void; throwError(err: Error): void; } export {};