import { Pool, PoolConnection } from "mysql2/promise"; import MysqlDBConnection from "../database/mysql/MysqlDBConnection"; import { config } from "winston"; import RequestContext from "../scope/RequestContext"; type EXCLUDE = string; export interface CTX_OPTIONS { [key: string]: string | EXCLUDE[] | undefined; BASE?: string[]; TARGET?: EXCLUDE[]; DEBUG?: string; CONFIG?: string; } export interface RAW { [key: string]: string; } export type RST = RAW | RAW[] | undefined; export interface TRANS_DATA { [key: string]: string | object | undefined; header: OBJECT_DEFAULT; body: { request: OBJECT_DEFAULT; response: OBJECT_DEFAULT; }; } export type DB_TYPE = 'MYSQL' | 'ORACLE' | 'MSSQL'; export type POOL_TYPE = Pool; export type CONNECTION_TYPE = PoolConnection; export type CONNECTIONS = MysqlDBConnection; export declare enum CONNECTION_END_TYPE { COMMIT = 0, ROLLBACK = 1 } export interface DB_OPTION { [key: string]: string | number | boolean | undefined; host: string; port: number; user: string; password: string; database: string; connectionLimit?: number; waitForConnections: boolean; } export type SCOPE_TYPE = "singleton" | "request" | "prototype" | "object"; export interface BEAN_OPTION { [key: string]: string | undefined; SCOPE?: SCOPE_TYPE; SUBTYPE?: string; MODULE_NAME?: string; } export interface DAO_OPTION { TYPE?: DB_TYPE; SCOPE: SCOPE; } export declare const LOG_LEVEL: Readonly<{ error: "error"; warn: "warn"; info: "info"; http: "http"; verbose: "verbose"; debug: "debug"; silly: "silly"; }>; export declare const LOG_COLOR: config.AbstractConfigSetColors; export type LOG_DISPLAY_TYPE = "CONSOLE" | "FILE" | "DEFAULT"; export type LOGGER_TYPE_DEF = "DEBUG" | "ERROR" | "INFO"; export type OBJECT_DEFAULT = { [key: string]: any; }; export declare enum COMPONENT_TYPE { NONE = 0, APPLICATION_MAIN = 1, TRANSACTION_PROCESSOR = 2, COMPONENT = 3, BEAN = 4, RESOLVER = 5, MIDDLEWARE = 6, SESSION = 7 } export interface SCAN_TYPE { TYPE: COMPONENT_TYPE; PATH: string; CLASS_NAME: string; CLASS: any; BEAN?: any; ENTRY?: DocEntry; OPTION?: BEAN_OPTION; } export interface BEAN_MAP { [BEAN_NAME: string]: SCAN_TYPE; } export interface PATH_INFO { FILE_NAME: string; BIZ_PATH: string; PATH: string; } export interface PATH_MAP { [key: string]: PATH_INFO; } export declare enum AST_TYPE { DECORATOR = 0, CLASS = 1, FIELD = 2, METHOD = 3 } export interface AST_INFO { TYPE: AST_TYPE; NAME: string; NODE: object; } export interface AUTO_WIRED_TYPE { SCOPE: SCOPE_TYPE; INVOKE: Function; } export interface DocEntry { name?: string; value?: string; scope?: string; fileName?: string; documentation?: string; type?: string; constructors?: DocEntry[]; parameters?: DocEntry[]; parameterValues?: DocEntry[]; decorators?: DocEntry[]; fields?: DocEntry[]; returnType?: string; } export type SCOPE = 'request' | 'prototype' | 'singleton' | 'default'; export declare const DEFAULT_CONTEXT = "DEFAULT_CONTEXT"; export interface REQUEST_CONTEXT { [key: string]: RequestContext; } export interface DEFAULT_HTTP_REQUEST { [key: string]: string; } export type MIME_TYPE = "any" | "rest" | "view" | "aac" | "abw" | "arc" | "avi" | "azw" | "bin" | "bz" | "bz2" | "csh" | "css" | "csv" | "doc" | "epub" | "gif" | "htm" | "html" | "ico" | "ics" | "jar" | "jpeg" | "jpg" | "png" | "js" | "json" | "mid" | "midi" | "mpeg" | "mpkg" | "odp" | "ods" | "odt" | "oga" | "ogv" | "ogx" | "pdf" | "ppt" | "rar" | "rtf" | "sh" | "svg" | "swf" | "tar" | "tif" | "tiff" | "ttf" | "vsd" | "wav" | "weba" | "webm" | "webp" | "woff" | "woff2" | "xhtml" | "xls" | "xml" | "xul" | "zip" | "3gp" | "3g2" | "7z" | "map"; export type MEDIA_TYPE = { [key in MIME_TYPE]: string; }; export declare const MEDIA_TYPE_MAP: MEDIA_TYPE; export interface FILE_INFO { name: string; extension: string; } export declare enum PARSE_TYPE { JSON = "json", XML = "xml" } export {}; //# sourceMappingURL=types.d.ts.map