import { BodyRules } from './interfaces'; export type Views = { [key: string]: any; }; export type MakeModelOptions = { save?: boolean; }; export type InterfaceSuppotrs = 'body' | 'views' | 'methods' | 'loaders'; export type ContainerInterface = { [key in InterfaceSuppotrs]?: Array; }; export type Modes = 'status' | 'model' | 'list' | 'dictionary' | 'any'; export type ListWriteOptions = { insert?: number; }; export type RuleCallback = (...params: any) => true | string; export type RuleArray = Array; export interface Rule { required: boolean; handler: RuleCallback; } export type EventCallback = (target: any, context: EventContext, ...params: T) => void; export type EventContext = { id: string; };