import { NextHealthCheckStatus } from "../config/NextOptions"; import { NextApplication } from "../NextApplication"; import { NextContextBase } from "../NextContext"; import { NextFlag } from "../NextFlag"; export type DbOperation = 'insert' | 'update' | 'delete' | 'select' | 'procedure'; export interface DbOperationContext { table?: string; data?: any; where?: any; options?: any; result?: any; operation: DbOperation; nextContext: NextContextBase; workflow?: any; action?: any; plugin?: NextPlugin; query?: any; } export declare class NextPlugin { name: string; showInContext: boolean; constructor(name: string, showInContext?: boolean); private _dbMiddlewares; init(next: NextApplication): Promise; middleware(next: NextContextBase): Promise; destroy(next: NextApplication): Promise; retrieve(next: NextContextBase): Promise; disposeInstance(next: NextContextBase, instance: T): Promise; healthCheck(next: NextApplication): Promise; onBeforeDb?(context: DbOperationContext): Promise; onAfterDb?(context: DbOperationContext): Promise; registerDbMiddleware(mw: { name?: string; priority?: number; before?(ctx: DbOperationContext): Promise | boolean | void; after?(ctx: DbOperationContext): Promise | void; enabled?: (ctx: DbOperationContext) => boolean; }): void; getDbMiddlewares(): any[]; } //# sourceMappingURL=NextPlugin.d.ts.map