gplayapi-ts
Version:
Google Play API wrapper in TypeScript
37 lines (33 loc) • 1.13 kB
TypeScript
import { DeviceInfo, DeviceFeature } from '../models/device.js';
import { Pixel3aDevice } from './profiles/pixel3a.js';
export { Pixel3a } from './profiles/pixel3a.js';
import '../gen_proto/googleplay_pb.js';
import '@bufbuild/protobuf';
import './profiles/common.js';
/**
* 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 };