import request from 'request'; import { OAuthCode } from './api'; /** * Performs a bare GET request. */ export declare const performGetRequest: (uri: string, json?: boolean, headers?: request.Headers | undefined) => Promise; /** * Performs an authenticated OAuth GET request using a Bearer token. */ export declare const performGetRequestWithBearerToken: (uri: string, token: string) => Promise; /** * Requests an OAuth 2.0 code using the default web browser, starts a mini-web server for handling the redirect, * and redirects to a success page after completion. * @param authUrl The pre-built authentication URL where we can request a code. * @param port The (open) port number where we should start listening for tokens. */ export declare const getOAuthCodeFromBrowser: (authUrl: string, port: number) => Promise; /** * Implements the OAuth token dance for Figma and resolves a useful access token. */ export declare const getFigmaAccessToken: () => Promise; //# sourceMappingURL=utils.network.d.ts.map