/** * Joi validation schemas for @gleanwork/web-sdk types. * * This module provides Joi schemas that mirror the TypeScript interfaces from @gleanwork/web-sdk. * The schemas are organized in a modular way to reduce duplication and improve maintainability. * * Key benefits: * - TypeScript imports ensure we stay in sync with the SDK's type definitions * - Modular composition reduces duplication (e.g., baseOptionsSchema) * - Clear separation between validation logic and type definitions * * To maintain sync with SDK updates: * 1. TypeScript compiler will catch breaking changes when SDK types change * 2. Run `yarn schema:check` to validate type compatibility * 3. Update schemas as needed when new SDK versions are released * * @see {@link https://developers.glean.com/docs/browser_api/} Glean Browser API docs */ import * as Joi from 'joi'; import type { ModalSearchOptions, ChatOptions, AuthTokenDetails } from '@gleanwork/web-sdk'; export declare const AuthTokenDetailsSchema: Joi.ObjectSchema; export declare const BoxCustomizationsSchema: Joi.ObjectSchema; export declare const ThemeSchema: Joi.ObjectSchema; export declare const ChatCustomizationsSchema: Joi.ObjectSchema; export declare const FilterValueSchema: Joi.ObjectSchema; export declare const ModalSearchOptionsSchema: Joi.ObjectSchema; export declare const ChatOptionsSchema: Joi.ObjectSchema; export type TypedModalSearchOptions = ModalSearchOptions; export type TypedChatOptions = ChatOptions; export type TypedAuthTokenDetails = AuthTokenDetails;