@galihrivanto/node-libcurli
Version:
Node.js bindings for curl-impersonate library
44 lines • 1.29 kB
TypeScript
import { CurlyFunction } from '../shared/curly';
declare enum Browser {
Chrome99 = "chrome99",
Chrome99_Android = "chrome99_android",
Chrome100 = "chrome100",
Chrome101 = "chrome101",
Chrome104 = "chrome104",
Chrome107 = "chrome107",
Chrome110 = "chrome110",
Chrome116 = "chrome116",
Edge99 = "edge99",
Edge101 = "edge101",
Firefox91ESR = "ff91esr",
Firefox95 = "ff95",
Firefox98 = "ff98",
Firefox100 = "ff100",
Firefox102 = "ff102",
Firefox109 = "ff109",
Firefox117 = "ff117",
Safari15_3 = "safari15_3",
Safari15_5 = "safari15_5"
}
interface BrowserConfig {
headers: Record<string, string>;
tlsVersion?: string;
ciphers?: string;
compressed?: boolean;
http2?: boolean;
alps?: boolean;
npn?: boolean;
alpn?: boolean;
certCompression?: string;
http2NoServerPush?: boolean;
tlsPermuteExtensions?: boolean;
curves?: string;
signatureHashes?: string;
noTlsSessionTicket?: boolean;
http2PseudoHeadersOrder?: string;
}
declare const BROWSER_CONFIGS: Record<Browser, BrowserConfig>;
declare function impersonate(browser: Browser): CurlyFunction;
export * from '../index';
export { BROWSER_CONFIGS, Browser, impersonate };
//# sourceMappingURL=index.d.ts.map