import { t } from '../common'; export declare type ITypeDefPayload = { ns?: t.INsProps; columns: t.IColumnMap; }; export declare type INsTypeDef = { uri: string; typename: string; columns: t.IColumnTypeDef[]; errors: t.ITypeError[]; }; export declare type IColumnTypeDef = ITypeDef & { column: string; error?: t.ITypeError; }; export declare type ITypeDef = { prop: string; type: T; optional?: boolean; default?: PrimitiveValue | ITypeDefault; target?: t.CellTypeTarget; }; export declare type ITypeDefault = ITypeDefaultValue | ITypeDefaultRef; export declare type ITypeDefaultValue = { value: TypeDefaultValue; }; export declare type ITypeDefaultRef = { ref: string; path?: string; }; export declare type TypeDefaultValue = PrimitiveValue | PrimitiveValue[] | t.JsonMap; export declare type PrimitiveValue = string | number | boolean | undefined | null; export declare type ITypePrimitives = { string: t.ITypeValue; number: t.ITypeValue; boolean: t.ITypeValue; undefined: t.ITypeValue; null: t.ITypeValue; }; export declare type IType = ITypeValue | ITypeEnum | ITypeUnion | ITypeRef | ITypeUnknown; export declare type ITypeUnion = { kind: 'UNION'; typename: string; isArray?: boolean; types: IType[]; }; export declare type ITypeRef = { kind: 'REF'; scope: 'NS' | 'COLUMN' | 'UNKNOWN'; uri: string; typename: string; isArray?: boolean; types: ITypeDef[]; }; export declare type ITypeValue = { kind: 'VALUE'; typename: keyof ITypePrimitives; isArray?: boolean; }; export declare type ITypeEnum = { kind: 'ENUM'; typename: string; isArray?: boolean; }; export declare type ITypeUnknown = { kind: 'UNKNOWN'; typename: string; isArray?: boolean; };