import { JwtHeader, JwtPayload } from 'jwt-decode';
import { IDidConfigurationResource } from '../types';
/**
 * Fetches a DID configuration resource from a given origin.
 *
 * @param origin The origin of the location.
 * @param verifyResource
 * @return {IDidConfigurationResource}, DID configuration resource.
 */
export declare const fetchWellKnownDidConfiguration: (origin: string, verifyResource?: boolean) => Promise<IDidConfigurationResource>;
/**
 * Verifies the DID configuration resource object structure.
 *
 * @param resource The DID configuration resource.
 */
export declare const verifyResourceStructure: (resource: IDidConfigurationResource) => Promise<void>;
/**
 * Decodes a JWT token.
 *
 * @param token The JWT token.
 * @param header Option to decode header or payload.
 * @return {JwtPayload | JwtHeader}, Decoded header or payload object.
 */
export declare const decodeToken: (token: string, header: boolean) => JwtPayload | JwtHeader;
