UNPKG

@sphereon/openid4vci-client

Version:

OpenID for Verifiable Credential Issuance (OpenID4VCI) client

24 lines (23 loc) 870 B
import { OpenIDResponse } from '../types'; export declare const getJson: <T>(URL: string, opts?: { bearerToken?: string; contentType?: string; accept?: string; customHeaders?: HeadersInit; exceptionOnHttpErrorStatus?: boolean; }) => Promise<OpenIDResponse<T>>; export declare const formPost: <T>(url: string, body: BodyInit, opts?: { bearerToken?: string; contentType?: string; accept?: string; customHeaders?: HeadersInit; exceptionOnHttpErrorStatus?: boolean; }) => Promise<OpenIDResponse<T>>; export declare const post: <T>(url: string, body?: BodyInit, opts?: { bearerToken?: string; contentType?: string; accept?: string; customHeaders?: HeadersInit; exceptionOnHttpErrorStatus?: boolean; }) => Promise<OpenIDResponse<T>>; export declare const isValidURL: (url: string) => boolean;