import { FieldType, Field, ComputedField, Entity } from "../types"; /** * Canonical mapping from .apsorc field types to Postgres column types. * This is the single source of truth -- sandbox, entity-generator, and * templates should all derive from this map. */ export declare const fieldTypeToColumnType: Record; /** * Normalize a field type to its template-compatible name. * PostgreSQL has some types with spaces (e.g., "double precision") * that need to be mapped to simpler names for template lookup. */ export declare const normalizeFieldType: (type: string) => string; export declare const getJsTypeFromFieldType: (type: FieldType | string) => string; export declare const getDefaultValueForField: (field: Field) => string | null; export declare const getFieldForTemplate: (fields: Field[], entityName: string) => ComputedField[]; export declare const fieldToEnumType: (fieldName: string, entityName: string) => string; export declare const typeExistsInEntity: (entity: Entity, type: string) => number; export declare const validateDecimalField: (field: Field) => void;