@actions/github
Version:
Actions github lib
10 lines (9 loc) • 628 B
TypeScript
import * as http from 'http';
import type { OctokitOptions } from '@octokit/core/types';
import { ProxyAgent, fetch } from 'undici';
export declare function getAuthString(token: string, options: OctokitOptions): string | undefined;
export declare function getProxyAgent(destinationUrl: string): http.Agent;
export declare function getProxyAgentDispatcher(destinationUrl: string): ProxyAgent | undefined;
export declare function getProxyFetch(destinationUrl: any): typeof fetch;
export declare function getApiBaseUrl(): string;
export declare function getUserAgentWithOrchestrationId(baseUserAgent?: string): string | undefined;