///
import type { AuthOptions } from 'auth0-js';
import type { Client, Simulation } from '@simulacrum/client';
import { Auth0Result } from 'auth0-js';
declare global {
namespace Cypress {
interface Chainable {
createSimulation(options?: CreateSimulation): Chainable;
destroySimulation(): Chainable;
login(person?: Partial): Chainable;
logout(): Chainable;
given(attrs?: Partial): Chainable;
out(msg: string): Chainable;
getUserInfo(accessToken: string): Chainable;
getUserTokens(person: Person): Chainable;
task(event: string, args?: any, options?: Partial): Chainable;
}
}
}
export declare const enum Auth0SDK {
Auth0JS = "auth0-js",
Auth0Vue = "auth0-vue",
Auth0React = "auth0-react",
Auth0NextJS = "nextjs-auth0"
}
export type TestState = Record;
export type CreateSimulation = AuthOptions & {
debug?: boolean;
};
export interface Person {
email: string;
password: string;
}
export type GetClientFromSpec = (spec: string) => Client;
export interface EncryptPayload {
secret: string;
audience: string;
user: Person;
idToken?: string;
accessToken?: string;
accessTokenScope: string;
accessTokenExpiresAt: number;
createdAt: number;
}