UNPKG

gplayapi-ts

Version:
37 lines (33 loc) 1.13 kB
import { DeviceInfo, DeviceFeature } from '../models/device.mjs'; import { Pixel3aDevice } from './profiles/pixel3a.mjs'; export { Pixel3a } from './profiles/pixel3a.mjs'; import '../gen_proto/googleplay_pb.mjs'; import '@bufbuild/protobuf'; import './profiles/common.mjs'; /** * Device factory and registry for Google Play API */ declare const createDeviceFeature: (name: string, value: number) => DeviceFeature; /** * Helper function to create device features from a list of feature names */ declare const createDeviceFeatures: (featureNames: string[]) => DeviceFeature[]; /** * Registry of available devices for easy access */ declare const DeviceRegistry: { readonly Pixel3a: Pixel3aDevice; }; /** * Get all available device names */ declare const getAvailableDevices: () => string[]; /** * Get a device by name */ declare const getDevice: (deviceName: keyof typeof DeviceRegistry) => DeviceInfo; /** * Get the default device (Pixel 3a) */ declare const getDefaultDevice: () => DeviceInfo; export { DeviceRegistry, createDeviceFeature, createDeviceFeatures, getAvailableDevices, getDefaultDevice, getDevice };