import { RegisterServerExternalAuthenticatedResult } from '../../types/plugins/register-server-auth.model';
import { UserRole } from '../../../shared/models';
declare function onExternalUserAuthenticated(options: {
    npmName: string;
    authName: string;
    authResult: RegisterServerExternalAuthenticatedResult;
}): Promise<void>;
declare function getAuthNameFromRefreshGrant(refreshToken?: string): Promise<string>;
declare function getBypassFromPasswordGrant(username: string, password: string): Promise<{
    bypass: boolean;
    pluginName: string;
    authName: string;
    user: {
        username: string;
        email: string;
        role: UserRole;
        displayName: string;
    };
}>;
declare function getBypassFromExternalAuth(username: string, externalAuthToken: string): {
    bypass: boolean;
    pluginName: string;
    authName: string;
    user: {
        username: string;
        email: string;
        displayName: string;
        role: UserRole;
    };
};
export { onExternalUserAuthenticated, getBypassFromExternalAuth, getAuthNameFromRefreshGrant, getBypassFromPasswordGrant };
//# sourceMappingURL=external-auth.d.ts.map