declare module 'crypto-js' {
  // Minimal typings for the subset used in `src/api/system/file/index.ts`.
  export interface WordArray {
    toString(encoder?: unknown): string;
  }

  export const enc: {
    Base64: {
      stringify(wordArray: WordArray): string;
    };
  };

  export function HmacSHA1(message: string, key: string): WordArray;

  const CryptoJS: {
    enc: typeof enc;
    HmacSHA1: typeof HmacSHA1;
  };

  export default CryptoJS;
}

