import type { OAuthAppState, GitHubAppState, AppAuthOptions, WebFlowAuthOptions, OAuthAppDeviceFlowAuthOptions, GitHubAppDeviceFlowAuthOptions, FactoryOAuthAppWebFlow, FactoryOAuthAppDeviceFlow, FactoryGitHubWebFlow, FactoryGitHubDeviceFlow, AppAuthentication, OAuthAppUserAuthentication, GitHubAppUserAuthentication, GitHubAppUserAuthenticationWithExpiration } from "./types"; export declare function auth(state: OAuthAppState | GitHubAppState, authOptions: AppAuthOptions): Promise; export declare function auth(state: OAuthAppState, authOptions: WebFlowAuthOptions): Promise; export declare function auth(state: OAuthAppState, authOptions: WebFlowAuthOptions & { factory: FactoryOAuthAppWebFlow; }): Promise; export declare function auth(state: OAuthAppState, authOptions: OAuthAppDeviceFlowAuthOptions): Promise; export declare function auth(state: OAuthAppState, authOptions: OAuthAppDeviceFlowAuthOptions & { factory: FactoryOAuthAppDeviceFlow; }): Promise; export declare function auth(state: GitHubAppState, authOptions: WebFlowAuthOptions): Promise; export declare function auth(state: GitHubAppState, authOptions: WebFlowAuthOptions & { factory: FactoryGitHubWebFlow; }): Promise; export declare function auth(state: GitHubAppState, authOptions: GitHubAppDeviceFlowAuthOptions): Promise; export declare function auth(state: GitHubAppState, authOptions: GitHubAppDeviceFlowAuthOptions & { factory: FactoryGitHubDeviceFlow; }): Promise;