/**
 * Package Parser domain port.
 *
 * Abstracts APK/IPA binary parsing for version management.
 * The concrete implementation lives in infrastructure/parsers/.
 */

export const PACKAGE_PARSER = Symbol('IPackageParser');

export interface ParsedPackageInfo {
  packageName: string;
  versionCode: number;
  versionName: string;
  minSdkVersion?: string;
  platform: 'ANDROID' | 'IOS';
}

export interface IPackageParser {
  parse(buffer: Buffer, filename: string): Promise<ParsedPackageInfo>;
}
