google-trends-api-client
Version:
An fully typed and easy to use client for the google trends api.
12 lines (11 loc) • 557 B
TypeScript
import { CookiesCache } from './common';
/**
* we use a session-token to send the same user-agent through got-scraping when using cookies
* - that way, when the site assigns an id cookie to our browser, they dont suddenly see a new browser with that same id
*/
export declare const findOrCreateSessionTokenForCookieCache: ({ cookieCache, }: {
cookieCache: CookiesCache;
}) => Promise<string>;
export declare const useSessionTokenForCookieCacheIfPossible: ({ cookieCache, }: {
cookieCache?: CookiesCache | undefined;
}) => Promise<string> | null;