import { CredifyClass } from "./common"; export declare class Auth extends CredifyClass { /** * Introspects access token * @param token * @param scope */ introspectToken(token: string, scope: string): Promise; /** * Introspects an access token with the result returning * @param token * @returns Promise Any here should be a json object with the schema like { data: { active: true, client_id: '', scope: '', ... } } */ introspectTokenReturnResult(token: string): Promise; /** * Verifies webhook that is sent by Credify. * This function checks if the signature is actually signed by Credify. * @param signature You can get it from webhook HTTP request header * @param body Webhook HTTP request body * @param endpoint You can get it from webhook HTTP request header * @param eventId You can get it from webhook HTTP request header * @param timestamp You can get it from webhook HTTP request header * @returns Promise Whether this request is valid or not. */ verifyWebhook(signature: string, body: object, endpoint: string, eventId: string, timestamp: string): Promise; }