@imaginerlabs/user-agent-generator
Version:
High-performance, configurable, batch-generating User-Agent spoofing library. Supports multiple browsers, devices, and returns detailed meta information. Perfect for web scraping, automated testing, proxy pools and more.
30 lines (29 loc) • 868 B
TypeScript
/**
* User-Agent Meta Information Builder
* User-Agent 元信息构建器
*
* This module is responsible for building structured meta information
* for User-Agent strings.
* 该模块负责为 User-Agent 字符串构建结构化的元信息。
*/
import { BrowserType, UserAgentMeta } from './types';
/**
* Parameters for building User-Agent meta information
* 构建 User-Agent 元信息的参数
*/
interface BuildMetaParams {
browser: BrowserType;
browserVersion: string;
os: string;
osVersion: string;
device: 'desktop' | 'mobile' | 'tablet';
}
/**
* Build User-Agent meta information structure
* 构建 User-Agent 元信息结构
*
* @param params Build parameters / 构建参数
* @returns UserAgentMeta structure / UserAgentMeta 结构
*/
export declare function buildMeta(params: BuildMetaParams): UserAgentMeta;
export {};