UNPKG

@openade/pel

Version:

Punto di Elaborazione (Elaboration Point) - Server library for managing PEMs and communicating with ADE

30 lines 854 B
import express from 'express'; import type { ADEClient } from './ade.client'; import type { IDatabase } from './database.interface'; import type { IStorage } from './storage.interface'; export interface PELServerConfig { storage: IStorage; database: IDatabase; adeClient: ADEClient; port?: number; } export declare class PELServer { private app; private router; private storage; private database; private adeClient; private port; constructor(config: PELServerConfig); private setupMiddleware; private setupRoutes; private generateSeed; private validateDocument; private validateJournal; private verifyJournalIntegrity; private reportAnomaly; private generateDailyReceipts; start(): Promise<void>; getApp(): express.Application; } //# sourceMappingURL=pel.server.d.ts.map