import Controller from '@curveball/controller'; import { Context } from '@curveball/core'; import { OAuth2Client } from '../../oauth2-client/types'; declare class AuthorizeController extends Controller { get(ctx: Context): Promise; tokenRedirect(ctx: Context, oauth2Client: OAuth2Client, redirectUri: string, state: string | undefined): Promise; codeRedirect(ctx: Context, oauth2Client: OAuth2Client, redirectUri: string, state: string | undefined, codeChallenge: string | undefined, codeChallengeMethod: 'S256' | 'plain' | undefined): Promise; /** * Redirects to login screen, if login failed */ redirectToLogin(ctx: Context, params: { [key: string]: string; }): Promise; } declare const _default: AuthorizeController; export default _default;