export declare const superAdmin: { loginInfo: Pick<{ email: string; firstname: string; lastname: string; password: string; }, "email" | "password">; credentials: { email: string; firstname: string; lastname: string; password: string; }; }; /** * Returns valid JWT token for authenticated * @param {String | number} idOrEmail, either user id, or email */ import type { Strapi } from '@strapi/strapi'; export declare function jwt(idOrEmail: any): Promise; /** * Grants database `permissions` table that role can access an endpoint/controllers * * @param {int} roleID, 1 Autentihected, 2 Public, etc * @param {string} value, in form or dot string eg `"permissions.users-permissions.controllers.auth.changepassword"` * @param {boolean} enabled, default true * @param {string} policy, default '' */ export declare function grantPrivilege(roleID: number, value: any, enabled?: boolean, policy?: string): Promise; /** Updates database `permissions` that role can access an endpoint * @see grantPrivilege */ export declare function grantPrivileges(roleID?: number, values?: any[]): Promise; /** * Create a super admin account * @param {Strapi} strapi * @param {{email?: string, password?: string, whenNone?: boolean}} opts * @param opts.email the email to register with * @param opts.password the password to use * @param opts.whenNone only create the user when there is no admin user * @returns {Promise<{jwt: string, user: object}>} */ export declare function createSuperadminAccount(strapi: Strapi, opts?: { email?: string; password?: string; whenNone?: boolean; }): Promise<{ jwt: string; user: object; }>; /** * Use this to turn off authentication * @param {} strapi * @returns {Promise<{authenticated: boolean}>} */ export declare function bypassAuth({ strapi }: { strapi: Strapi; }): Promise;