import { User, Role, Identity } from '../database';
export declare function findUser(id: User['id']): Promise<User | null>;
export declare function getSuperUserRole(): Promise<Role>;
export declare function upsertUser({ name, provider_type, provider_hash, provider_access_token, provider_refresh_token, roles, }: {
    name: User['name'];
    provider_type: Identity['provider_type'];
    provider_hash: Identity['provider_hash'];
    provider_access_token?: Identity['provider_access_token'];
    provider_refresh_token?: Identity['provider_refresh_token'];
    roles: User['roles'];
}): Promise<User>;
export declare function isSuperUser(user: User): boolean;
//# sourceMappingURL=utils.d.ts.map