/** * Luqta Web SDK * * Official JavaScript/TypeScript SDK for integrating Luqta contest management, * user engagement, and gamification features into web applications. * * Supports two modes: * 1. Custom UI Mode - API-only integration for custom UI implementations * 2. Pre-configured UI Mode - Complete UI with branding customization * * And two API access types: * 1. Application APIs - Only require API Key + App ID * 2. End-User APIs - Require API Key + App ID + User identification */ import { LuqtaClient } from './client'; import { LuqtaConfig, CustomModeConfig, PreconfiguredModeConfig, LegacyConfig, RequestOptions, ApiResponse, PaginatedResponse, LuqtaError, UserProfile, UserIdentification, BrandingConfig, UIConfig, SDKMode, Contest, ContestBanner, ParticipateProgress, Level, LevelImage, LevelCompleteRequest, Quiz, QuizQuestion, QuizOption, QuizAttempt, QuizProgress, QuizResult, Prize, Reward, UserEarnings, Notification, UIAction, APPLICATION_ENDPOINTS, USER_ENDPOINTS, ApplicationEndpoint, UserEndpoint } from './types'; /** * Creates a new Luqta SDK client instance * * @example Custom Mode (API-only): * ```typescript * const client = createClient({ * mode: 'custom', * apiKey: 'your-api-key', * appId: 'your-app-id', * user: { email: 'user@example.com' } * }); * ``` * * @example Pre-configured Mode: * ```typescript * const client = createClient({ * mode: 'preconfigured', * apiKey: 'your-api-key', * appId: 'your-app-id', * containerId: 'luqta-container', * branding: { primaryColor: '#5304fb' } * }); * ``` */ export declare function createClient(config: LuqtaConfig | LegacyConfig): LuqtaClient; export { LuqtaClient }; export { LuqtaError }; export type { LuqtaConfig, CustomModeConfig, PreconfiguredModeConfig, LegacyConfig, BrandingConfig, UIConfig, SDKMode, }; export type { RequestOptions, ApiResponse, PaginatedResponse, }; export type { UserProfile, UserIdentification, }; export type { Contest, ContestBanner, ParticipateProgress, Level, LevelImage, LevelCompleteRequest, Quiz, QuizQuestion, QuizOption, QuizAttempt, QuizProgress, QuizResult, Prize, Reward, UserEarnings, Notification, UIAction, }; export { APPLICATION_ENDPOINTS, USER_ENDPOINTS, }; export type { ApplicationEndpoint, UserEndpoint, }; export { LuqtaUIRenderer } from './ui/renderer'; export { ICONS, getLevelTypeIcon, getLevelTypeName } from './ui/icons'; export { injectStyles, generateCSSVariables, SDK_STYLES, DEFAULT_BRANDING } from './ui/styles'; declare const _default: { createClient: typeof createClient; LuqtaClient: typeof LuqtaClient; LuqtaError: typeof LuqtaError; APPLICATION_ENDPOINTS: { readonly GET_ALL_CONTESTS: "/sdk/app/contest/all"; readonly GET_TRENDING_CONTESTS: "/sdk/app/contest/trending"; readonly GET_PREMIUM_CONTESTS: "/sdk/app/contest/premium"; readonly GET_RECENT_CONTESTS: "/sdk/app/contest/recently"; readonly GET_CATEGORIES: "/sdk/app/categories"; readonly GET_REWARDS: "/sdk/app/reward/list"; }; USER_ENDPOINTS: { readonly INITIALIZE: "/sdk/app/initialize"; readonly INITIALIZE_USER: "/sdk/app/initialize/user"; readonly SYNC_USER: "/sdk/app/user/sync"; readonly GET_PROFILE: "/sdk/app/user/profile"; readonly DELETE_ACCOUNT: "/sdk/app/contest/account-delete"; readonly PARTICIPATE: "/sdk/app/contest/participate"; readonly GET_CONTEST_PROGRESS: "/sdk/app/contest/details-progress"; readonly GET_CONTEST_HISTORY: "/sdk/app/contest/history"; readonly CHECK_CONTEST_TYPE: "/sdk/app/contest/check-type"; readonly COMPLETE_LEVEL: "/sdk/app/contest/level/complete"; readonly COMPLETE_LEVEL_IMAGE: "/sdk/app/contest/level/complete/image-type"; readonly COMPLETE_CLIENT_WEBHOOK: "/sdk/app/client-webhook"; readonly UPDATE_LEVEL_PROGRESS: "/sdk/app/contest/level/update-inprogress"; readonly GET_LEVEL_CONGRATULATION: "/sdk/app/level/congratulation"; readonly SCAN_QR: "/sdk/app/contest/scan-qr"; readonly START_QUIZ: "/sdk/app/quiz/start"; readonly SUBMIT_ANSWER: "/sdk/app/quiz/attempt/answer"; readonly SUBMIT_QUIZ: "/sdk/app/quiz/attempt/submit"; readonly GET_EARNINGS: "/sdk/app/contest/user-earnings"; readonly GET_USER_ACTIVITIES: "/sdk/app/contest/user-activites"; readonly GET_USER_PROGRESS: "/sdk/app/contest/user-progress"; readonly REDEEM_REWARD: "/sdk/app/contest/reward/redeem"; readonly GET_REWARD_HISTORY: "/sdk/app/contest/reward-history"; readonly GET_PRIZE_HISTORY: "/sdk/app/prize/history"; readonly UPDATE_PRIZE_STATUS: "/sdk/app/prize/status"; readonly GET_NOTIFICATIONS: "/sdk/app/contest/get-notification"; readonly MARK_NOTIFICATIONS_READ: "/sdk/app/contest/mark-notifications-read"; readonly UPDATE_NOTIFICATION_SETTINGS: "/sdk/contest/app/notification/update"; readonly GET_AVAILABLE_TASKS: "/sdk/app/contest/get-available-tasks"; readonly START_TASK: "/sdk/app/task/start"; readonly ON_CONTEST_CLICK: "/sdk/app/contest/on_contest_click"; readonly SEND_REFERRAL: "/sdk/app/contest/referral/send"; readonly SUBMIT_FEEDBACK: "/sdk/app/contest/app-feedback"; }; }; export default _default;