export declare const isBrowser: boolean; export type RequestQuery = Record>; export type Query = { version?: string; lang?: string | "zh"; } & T; type RequestType = "json" | "form" | "formdata"; export declare class PixivWebAPIError extends Error { name: string; constructor(message: string); } export declare const request: (endpoint: string, query?: RequestQuery, data?: any, type?: RequestType) => Promise; export declare const requestJSON: (endpoint: string, query?: RequestQuery, data?: any, type?: RequestType) => Promise; export declare const requestJSONAPI: (endpoint: string, query?: RequestQuery, data?: any, type?: RequestType) => Promise; export {};