/**
 * Type declarations for adbkit-apkreader
 * 用于解析 Android APK 文件
 */
declare module 'adbkit-apkreader' {
  interface Manifest {
    package: string
    versionCode: number
    versionName: string
    usesPermissions?: string[]
    application?: {
      label?: string
      icon?: string
    }
    usesSdk?: {
      minSdkVersion?: number
      targetSdkVersion?: number
    }
  }

  class ApkReader {
    static open(path: string): Promise<ApkReader>
    readManifest(): Promise<Manifest>
    readContents(): Promise<Buffer>
  }

  export = ApkReader
}
