import * as OAuthAppAuth from "@octokit/auth-oauth-app"; import type { State, AppAuthOptions, AppAuthentication, OAuthAppAuthentication, OAuthAppAuthOptions, InstallationAuthOptions, InstallationAccessTokenAuthentication, GitHubAppUserAuthentication, GitHubAppUserAuthenticationWithExpiration, OAuthWebFlowAuthOptions, OAuthDeviceFlowAuthOptions } from "./types"; /** GitHub App authentication */ export declare function auth(state: State, authOptions: AppAuthOptions): Promise; /** OAuth App authentication */ export declare function auth(state: State, authOptions: OAuthAppAuthOptions): Promise; /** Installation authentication */ export declare function auth(state: State, authOptions: InstallationAuthOptions): Promise; /** User Authentication via OAuth web flow */ export declare function auth(state: State, authOptions: OAuthWebFlowAuthOptions): Promise; /** GitHub App Web flow with `factory` option */ export declare function auth(state: State, authOptions: OAuthWebFlowAuthOptions & { factory: OAuthAppAuth.FactoryGitHubWebFlow; }): Promise; /** User Authentication via OAuth Device flow */ export declare function auth(state: State, authOptions: OAuthDeviceFlowAuthOptions): Promise; /** GitHub App Device flow with `factory` option */ export declare function auth(state: State, authOptions: OAuthDeviceFlowAuthOptions & { factory: OAuthAppAuth.FactoryGitHubDeviceFlow; }): Promise;