import { FeatureFlagsOptions } from "./flags"; import type { Context, Feedback, Key, Options, RequestFeedbackOptions } from "./types"; export default function main(): { init: (key: Key, options?: Options) => void; reset: () => void; version: string; user: (userId: string, attributes?: Record, context?: Context) => Promise; company: (companyId: string, attributes?: Record | null, userId?: string, context?: Context) => Promise; track: (eventName: string, attributes?: Record | null, userId?: string, companyId?: string, context?: Context) => Promise; feedback: ({ feedbackId, featureId, question, score, userId, companyId, comment, promptId, promptedQuestion, source, }: Feedback) => Promise; requestFeedback: (options: RequestFeedbackOptions) => void; initLiveSatisfaction: (userId?: string) => Promise; initLiveFeedback: (userId?: string) => Promise; getFeatureFlags: ({ context, fallbackFlags, timeoutMs, staleWhileRevalidate, }: FeatureFlagsOptions) => Promise>; };