export interface Config { vouchHost?: string | URL; customerId?: string; apiKey?: string; } export interface WidgetUrlParams { widgetId: string; redirectBackUrl: string; webhookUrl?: string; metadata?: string; } export interface DataSourceUrlParams { datasourceId: string; redirectBackUrl: string; requestId?: string; webhookUrl?: string; inputs?: Record; metadata?: string; } export interface DataSourceUrlResult { verificationUrl: string; requestId: string; } export type WidgetUrlResult = DataSourceUrlResult; export declare class Vouch { host: URL; customerId?: string; apiKey?: string; constructor({ vouchHost, customerId, apiKey, }?: Config); getDataSourceUrl({ datasourceId, redirectBackUrl, requestId, webhookUrl, inputs, metadata, }: DataSourceUrlParams): Promise; getWidgetUrl({ widgetId, redirectBackUrl, webhookUrl, metadata, }: WidgetUrlParams): Promise; private createProofRequest; }