/** * Archetype Engine - Main API * * This is the primary interface most users need. * For advanced usage (templates, JSON parsing, AI tools), see namespace exports below. * * @packageDocumentation */ export { defineEntity } from './entity'; export type { EntityDefinition, EntityBehaviors } from './entity'; export { defineManifest, defineConfig } from './manifest'; export type { ManifestDefinition } from './manifest'; export { text, number, boolean, date, enumField, computed } from './fields'; export type { FieldBuilder, ComputedOptions } from './fields'; export { hasOne, hasMany, belongsToMany } from './relations'; export type { RelationBuilder, RelationType } from './relations'; export { external } from './source'; export type { ExternalSourceConfig } from './source'; export type { ProtectedShorthand, ProtectedConfig, ProtectedOption, HooksConfig, } from './entity'; export type { ModeConfig, DatabaseConfig, AuthConfig, I18nConfig, ObservabilityConfig, TenancyConfig, DefaultBehaviors, } from './manifest'; export type { TextFieldBuilder, NumberFieldBuilder, BooleanFieldBuilder, DateFieldBuilder, EnumFieldBuilder, ComputedFieldBuilder, Validation, } from './fields'; export { resolveEndpoints } from './source'; export type { ExternalSourceOptions, DatabaseSourceConfig, SourceConfig, } from './source'; /** * Internal IR (Intermediate Representation) types * Use these when building tools that consume compiled entities/manifests */ export type { EntityIR, ProtectedIR, HooksIR } from './entity'; export type { ManifestIR } from './manifest'; export { normalizeMode } from './manifest'; /** * Template system * For building custom code generators */ export { getTemplate, listTemplates, hasTemplate, runTemplate, createContext } from './template'; export type { Template, Generator, GeneratedFile, TemplateConfig } from './template/types'; /** * JSON parser & validation * For AI agents and JSON-based configuration */ export * as json from './json'; export { validateManifest, ValidationCodes } from './validation'; export type { ValidationError, ValidationResult } from './validation'; /** * AI tools * For building AI-powered app builders * Also available via: import { ... } from 'archetype-engine/ai' */ export { createManifestBuilder, aiTools } from './ai'; export type { ManifestBuilder, ToolResult } from './ai/types'; //# sourceMappingURL=index.d.ts.map