import { BaseFieldMetadata, ColumnMetadata, EntityPropertyTypes, LiteralMap, ObjectLiteral, ValidationResult } from 'mel-common'; export declare type AnyObjectLiteral = ObjectLiteral; export declare type EntityLiteral = ObjectLiteral; export declare type InputType = 'text' | 'text-area'; export declare type InputSubType = 'none' | 'text' | 'email' | 'number' | 'password' | 'tel' | 'url'; export declare type ValidationResults = ValidationResult[]; export declare type TriggerFunc = (value: EntityPropertyTypes) => void; export declare type ValidationFunc = (value: any, param?: any) => ValidationResult; export declare enum EntityTypes { 'unknown' = 0, 'view' = 1, 'table' = 2 } export declare type Range = { from: number; until?: number; }; export interface DisplayedFields { default?: string[]; part?: string[]; lookup?: string[]; } export declare type FieldTableRelation = { RelatedTableName: string; RelatedFieldName: string; condition?: EntityLiteral; }; /** * Interface for Fielddecorator */ export interface _FieldMetadata extends BaseFieldMetadata { otherName?: string; isGenerated?: boolean; enumValues?: string[]; default?: EntityPropertyTypes; tableRelation?: FieldTableRelation; editable?: boolean; validators?: ValidationFunc[]; autocomplete?: (value: string) => string; format?: (value: any) => string; formatString?: string; apiToJavaType?: (value: any) => EntityPropertyTypes; parse?: (value: any) => EntityPropertyTypes; javaToApiType?: (value: any) => string | number; display?: { type?: InputType; subType?: InputSubType; doNotTranslate?: true; enumValues?: string[]; caption?: string; hint?: string; }; } export interface FieldMetadata extends _FieldMetadata { name: string; } export declare type FieldInfo = ColumnMetadata & { PrimaryKeyNo?: number; }; export declare type FieldsMdMap = LiteralMap; export declare type FieldTrigger = (v: any) => void; export declare type TriggerMdMap = Map; export declare enum Permission { Insert = "i", Modify = "m", Delete = "d" } export declare class PagePermissions { constructor(access: Permission | Permission[] | string); get insert(): boolean; get modify(): boolean; get delete(): boolean; private accessMap; private _set; include(access: Permission | Permission[]): PagePermissions; exclude(access: Permission | Permission[]): PagePermissions; set(access: Permission | Permission[] | string): void; clear(): void; }