| 1 | import { IncomingRequestCommand } from './1.6/Requests'; |
| 2 | import { MessageType } from './MessageType'; |
| 3 | import OCPPError from '../../charging-station/OcppError'; |
| 4 | |
| 5 | export default interface Requests { |
| 6 | [id: string]: Request; |
| 7 | } |
| 8 | |
| 9 | export type Request = [(payload?: Record<string, unknown>, requestPayload?: Record<string, unknown>) => void, (error?: OCPPError) => void, Record<string, unknown>]; |
| 10 | |
| 11 | export type IncomingRequest = [MessageType, string, IncomingRequestCommand, Record<string, unknown>, Record<string, unknown>]; |