import { GetSandboxAttestationFormsResponse } from '../../interfaces'; import * as types from '@globalid/attestations-types'; import { MissingAttestationData } from 'src/sdk/interfaces'; import { AttestationPII } from '../api_interfaces'; import Agency = types.Agency; import App = types.App; import API = types.API; import Attestations = API.V1.Attestations; import Status = types.AttestationRequest.Status; declare type AttestationModel = types.AttestationRequest.Model; /** * A method to retrieve the attestation status of a given attestation request * * @method getAttestationStatus method to get the status of * an attestation request * @async * @export * @param attestationRequestId attetation request id * @param accessToken access token provided by auth methods * * @returns a promise which resolves an object with * interface AttestationRequest which holds * data on the status of a particular attestation */ export declare function getAttestationStatus(attestationRequestId: string, accessToken: string): Promise; /** * getAttestationStatusByStatus * * retrieves a list of attestation requests by status * * @export * @param <[ string ]> statuses * @param accessToken * @returns > */ export declare function getAttestationStatusByStatus(statuses: Status[], accessToken: string): Promise; /** * Method to retrieve the available attestation agencies * * @method getAttestationAgencies * @async * @export * @returns a promise which resolves to an array of * Agency.Model objects referring to the agencies which * provide attestations */ export declare function getAttestationAgencies(): Promise; /** * getSandboxAttestationForms * * retrieves a list of available forms from sandbox * * @export * @async * @param accessToken * @returns > */ export declare function getSandboxAttestationForms(accessToken: string): Promise; /** * Method to create an attestation request * * @method createAttestationRequest * @async * @export * @param args an object of interface CreateAttestationV5 * @param accessToken access token provided by auth methods * @returns a promise which resolves to either an * CreateAttestationV5Response or void depending on * if an error is thrown */ export declare function createAttestationRequest(args: Attestations.Requests.POST.RequestBody, accessToken: string): Promise; /** * Method for updating attestation requests * * @export * @async * @method updateAttestationRequest * @param trackingId tracking id for the attestion request * @param attestationRequest attestation request object containing details * to be updated for the attestation request with given tracking id * @param accessToken access token provided by auth methods * @returns a promise which returns void or an UpdateAttestationResponse */ export declare function updateAttestationRequest(trackingId: string, attestationRequest: Attestations.Requests._uuid.Identity.PUT.RequestBody, accessToken: string): Promise; /** * Method to reset agencies cache for testing purposes */ export declare function resetAgenciesCache(): void; /** * Preload and cache attestation agencies */ export declare function preloadAttestationAgencies(): Promise; /** * Gets all attestation types */ export declare function getAttestationTypes(): Promise; /** * Preloads and caches attestation agencies */ export declare function preloadAttestationTypes(): Promise; /** * Look for an attestation app in the attestation agency cache by uuid */ export declare function findAttestationAppByUUID(uuid: string): App.Model | undefined; /** * Find and return a form definition object of an attestation app by app uuid */ export declare function findFormDefinitionByUUID(uuid: string): object | undefined; /** * Find and return an agency model by attestation app uuid */ export declare function findAgencyByAgencyUUID(uuid: string): Agency.Model | undefined; /** * Find agency by gid_name */ export declare function findAgencyByName(gid_name: string): Promise; /** * getMissingAttestations * * returns missing attestations for a given acrcUUID * * @export * @param acrcUUID * @param accessToken * @returns > */ export declare function getMissingAttestations(acrcUUID: string, accessToken: string): Promise; /** * getPublicACRCValidation * * Gets the acrc for the UUID provided * * @param acrcUUID The acrcUUID to request * @param accessToken The access token provided by logging in or signing up */ export declare function getPublicACRCValidation(acrcUUID: string, accessToken: string): Promise; /** * Gets the pii tokens for the given attestation request id */ export declare function getAttestationPII(access_token: string, attestation_request_id: string): Promise; /** * Returns encrypted PII token from attestation service for * each attestation request id given */ export declare function getAttestationPIIForRequestIDs(access_token: string, attestation_request_ids: string[]): Promise; export {};