create-ai-chat-context-experimental
Version:
Phase 2: TypeScript rewrite - AI Chat Context & Memory System with conversation extraction and AICF format support (powered by aicf-core v2.1.0).
32 lines • 931 B
TypeScript
/**
* This file is part of create-ai-chat-context-experimental.
* Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
* See LICENSE file for details.
*/
/**
* Validation Utilities
* Common validation functions for parsers
* October 2025
*/
import type { Message } from '../types/index.js';
/**
* Validate content is not empty
*/
export declare function isValidContent(content: unknown): boolean;
/**
* Validate message structure
*/
export declare function isValidMessage(msg: unknown): msg is Message;
/**
* Validate array is not empty
*/
export declare function isValidArray<T>(arr: unknown): arr is T[];
/**
* Validate object structure
*/
export declare function isValidObject(obj: unknown): obj is Record<string, unknown>;
/**
* Validate string is not empty
*/
export declare function isValidString(str: unknown): str is string;
//# sourceMappingURL=ValidationUtils.d.ts.map