/**
 * Type declarations for the untyped `browserify-cipher` package.
 * Only the cipher functions used by `src/crypto-shim.ts` are declared.
 */
declare module 'browserify-cipher' {
  export interface Cipheriv {
    update(data: unknown): unknown
    final(): unknown
    setAutoPadding(autoPadding?: boolean): void
  }

  export function createCipheriv(
    algorithm: string,
    key: unknown,
    iv: unknown
  ): Cipheriv

  export function createDecipheriv(
    algorithm: string,
    key: unknown,
    iv: unknown
  ): Cipheriv
}
