UNPKG

@triagly/sdk

Version:

JavaScript SDK for Triagly - Turn user feedback into GitHub issues instantly

17 lines 648 B
import { FeedbackData, FeedbackMetadata, FeedbackResponse } from './types'; export declare class TriaglyAPI { private apiUrl; private publishableKey; private getToken?; private turnstileSiteKey?; constructor(publishableKey: string, apiUrl?: string, getToken?: () => Promise<string>, turnstileSiteKey?: string); /** * Get Turnstile token from widget if available */ private getTurnstileToken; /** * Submit feedback with new authentication */ submitFeedback(data: FeedbackData, metadata: FeedbackMetadata, turnstileToken?: string): Promise<FeedbackResponse>; } //# sourceMappingURL=api.d.ts.map