type InitOptions = { baseUrl?: string; clientId?: string; ip?: string; consent?: boolean; geo?: boolean; sidMaxAgeSeconds?: number; debug?: boolean; /** * @internal - For development/debugging only. Only available in debug builds. * Use `@solomei-ai/intent/debug` or `intent.debug.umd.min.js` to access this feature. */ debugPanel?: boolean; }; /** * Valid flag names for the Intent SDK */ type FlagName = 'intent:consent' | 'intent:geo' | 'intent:debug'; /** * Generic flag setter - prefer using specific functions like setConsent(), setGeo(), setDebug() * @param name - The flag name to set * @param yes - Boolean value to enable (true) or disable (false). Undefined will skip setting. * @deprecated This entire function will be removed in v2.0.0 (February 2026 - 2 months). * Migrate to type-safe functions: setConsent(), setGeo(), or setDebug(). * See migration guide in README for details. */ declare function setFlag(name: FlagName | string, yes: boolean | undefined | string): void; /** * Set consent flag - controls whether the SDK tracks user activity * @param granted - true to grant consent, false to revoke consent */ declare function setConsent(granted: boolean): void; /** * Set geolocation flag - controls whether the SDK captures device location * @param enabled - true to enable geolocation, false to disable */ declare function setGeo(enabled: boolean): void; /** * Set debug flag - controls whether the SDK outputs debug logs * @param enabled - true to enable debug logging, false to disable */ declare function setDebug(enabled: boolean): void; /** * Toggle debug panel - controls whether the debug panel UI is shown * * **⚠️ WARNING: Only available in debug builds** * * This function is only available when using debug build variants: * - ESM: `@solomei-ai/intent/debug` → `dist/esm/index.debug.js` * - UMD: `intent.debug.umd.min.js` * * The debug panel exposes internal SDK behavior including: * - Screenshots of user interactions * - Event payloads and metadata * - HTML content and element information * * **Production builds do not include this functionality.** * Attempting to use this in production builds will result in a warning and no-op. * * @internal * @param enabled - true to show debug panel, false to hide */ declare function setDebugPanel(enabled: boolean): void; declare function initIntent(opts?: InitOptions): void; declare function getIntentSessionId(): string | undefined; declare function ensureIntentSessionId(): void; declare function clearIntentSessionId(): void; declare function setIntentSessionMaxAge(seconds: number): void; export { clearIntentSessionId, ensureIntentSessionId, getIntentSessionId, initIntent, setConsent, setDebug, setDebugPanel, setFlag, setGeo, setIntentSessionMaxAge }; export type { FlagName, InitOptions };