google-trends-api-client
Version:
An fully typed and easy to use client for the google trends api.
12 lines (11 loc) • 783 B
TypeScript
import { createUrl } from 'url-fns';
import { AgentOptions } from '../common';
export declare const getFromApiCallWithoutRequestCachingOrRateLimiting: ({ origin, path, queryParams, pathParams, agentOptions: { userAgent, proxyConfig, cookieCache }, }: {
origin?: string | undefined;
path: string;
queryParams?: Parameters<typeof createUrl>[0]['queryParams'];
pathParams?: Parameters<typeof createUrl>[0]['pathParams'];
agentOptions?: AgentOptions | undefined;
}) => Promise<string>;
export declare const getFromApiCallWithoutRequestCaching: (args: Parameters<typeof getFromApiCallWithoutRequestCachingOrRateLimiting>[0]) => Promise<string>;
export declare const getFromApiCall: (args: Parameters<typeof getFromApiCallWithoutRequestCaching>[0]) => Promise<string>;