export declare enum ServiceType { before = "before", after = "after", handler = "handler", } export declare type Hook = { [index: string]: { [index: string]: string[]; }; before?: { [index: string]: string[]; }; after?: { [index: string]: string[]; }; }; export declare type ServiceResult = { [index: string]: any; __break?: boolean; }; export declare type TraceStack = { sid: string; type: ServiceType; duration: number; params?: any[]; sResult?: ServiceResult; }; export declare type Trace = { beginTime?: [number, number]; duration: number; stack: TraceStack[]; }; export interface XApi { add(): Promise; find(): Promise; findAll(): Promise; update(): Promise; remove(): Promise; }