import { Request, Response } from 'express'; import { OauthConsentDecideDto } from '../dtos/oauth.consent.decide.dto'; import { OauthRegisterDto } from '../dtos/oauth.register.dto'; import { OauthAsService } from '../services/oauth.as.service'; export declare class OauthAsController { private readonly oauthAsService; constructor(oauthAsService: OauthAsService); register(body: OauthRegisterDto, res: Response): Promise>>; authorize(query: Record, res: Response): Promise>>; postAuthorize(body: Record, res: Response): Promise>>; getConsent(authorizationId: string): Promise<{ status: "not_found"; authorization_id?: undefined; client_name?: undefined; redirect_host?: undefined; scope?: undefined; expires_at?: undefined; businesses?: undefined; } | { status: "decided"; authorization_id: number; client_name?: undefined; redirect_host?: undefined; scope?: undefined; expires_at?: undefined; businesses?: undefined; } | { status: "expired"; authorization_id: number; client_name?: undefined; redirect_host?: undefined; scope?: undefined; expires_at?: undefined; businesses?: undefined; } | { status: "pending"; authorization_id: number; client_name: string; redirect_host: string; scope: string; expires_at: Date; businesses: { id: number; name: string; role: string; is_current: boolean; }[]; }>; decide(body: OauthConsentDecideDto): Promise<{ status: "already_decided"; redirect_to: string; } | { status: "denied"; redirect_to: string; } | { status: "approved"; redirect_to: string; }>; token(req: Request, body: Record, res: Response): Promise>>; private protocolError; private errorHtml; }