kangaroo-expression
Version:
Secure expression evaluator with AST-based execution - A fast, safe, and powerful JavaScript-like expression language
17 lines • 795 B
TypeScript
import type { TypeRegistry, TypeConfig, RegisteredType } from '@/types/type-registry';
export declare class DefaultTypeRegistry implements TypeRegistry {
private types;
register(name: string, config: TypeConfig): void;
detectType(value: any): string | null;
serialize(value: any, typeName: string): any;
getRegisteredTypes(): RegisteredType[];
hasType(name: string): boolean;
private matchesType;
private hasRequiredProperties;
private validateProperties;
private validatePropertyType;
}
export declare function getGlobalTypeRegistry(): TypeRegistry;
export declare function setGlobalTypeRegistry(registry: TypeRegistry): void;
export declare function registerGlobalType(name: string, config: TypeConfig): void;
//# sourceMappingURL=type-registry.d.ts.map