import { Role } from '../entity-module/roles'; import { CaliobaseRequestUser } from './jwt.strategy'; import { MachineAuthService } from './machine-auth.service'; declare class CreateMachineTokenDto { name: string; roles?: Role[]; } declare class ExchangeMachineOidcTokenDto { token?: string; } type AuthenticatedRequest = { user: CaliobaseRequestUser; }; export declare class MachineAuthController { private readonly machineAuthService; constructor(machineAuthService: MachineAuthService); createToken({ user }: AuthenticatedRequest, body: CreateMachineTokenDto): Promise<{ token: string; machineAccessToken: import("./machine-auth.service").MachineTokenSummary; }>; listTokens({ user }: AuthenticatedRequest): Promise; revokeToken({ user }: AuthenticatedRequest, id: string): Promise; exchangeToken(authorization: string | undefined): Promise<{ accessToken: string; tokenType: "Bearer"; expiresIn: number; machineAccessToken: import("./machine-auth.service").MachineTokenSummary; }>; exchangeOidcToken(body: ExchangeMachineOidcTokenDto | undefined, authorization: string | undefined): Promise<{ accessToken: string; tokenType: "Bearer"; expiresIn: number; machineIdentity: import("./machine-oidc").MachineOidcIdentitySummary; }>; } export {};