/** * @traffical/svelte * * Traffical SDK for Svelte 5 applications. * Provides Provider component and hooks for parameter resolution and decision tracking. * * Features: * - Full SSR/hydration support for SvelteKit * - Svelte 5 runes for reactive, fine-grained updates * - Browser-optimized with sendBeacon, localStorage persistence * - Automatic stable ID for anonymous users * - Plugin system support (DecisionTrackingPlugin enabled by default) * - Decision and exposure deduplication * * @example * ```svelte * * * * * {@render children()} * * ``` * * @example * ```svelte * * * * {#if ready} *

{params['ui.hero.title']}

* {:else} *

Loading...

* {/if} * ``` */ export { resolveParameters, decide, evaluateCondition, evaluateConditions, computeBucket, isInBucketRange, generateEventId, generateDecisionId, generateExposureId, generateTrackEventId, } from "@traffical/core"; export type { AssignmentLogEntry, AssignmentLogger, TrackableEvent, TrackableEventLogger, } from "@traffical/core"; export { TrafficalClient, createTrafficalClient, createTrafficalClientSync, LocalStorageProvider, MemoryStorageProvider, createStorageProvider, createDOMBindingPlugin, createWarehouseNativeLoggerPlugin, createWarehouseNativeLogger, } from "@traffical/js-client"; export { initTraffical, getTrafficalContext, hasTrafficalContext, } from "./context.svelte.js"; export { useTraffical, useTrafficalTrack, useTrafficalReward, useTrafficalClient, useTrafficalPlugin, } from "./hooks.svelte.js"; export { default as TrafficalProvider } from "./TrafficalProvider.svelte"; export type { TrafficalProviderConfig, TrafficalContextValue, UseTrafficalOptions, UseTrafficalResult, BoundTrackOptions, TrackEventOptions, BoundTrackRewardOptions, TrackRewardOptions, LoadTrafficalBundleOptions, LoadTrafficalBundleResult, ConfigBundle, Context, DecisionResult, ParameterValue, TrafficalClient as TrafficalClientType, TrafficalPlugin, TrackEventMap, TypedTrackFn, } from "./types.js"; export type { OnSchemaWarnings, EventSchemaWarning, } from "@traffical/core"; export type { WarehouseNativeLoggerOptions } from "@traffical/js-client"; //# sourceMappingURL=index.d.ts.map