declare module 'asyncapi-validator' { type Validator = { validate: ( key: string, payload: unknown, channel: string, operation: 'publish' | 'subscribe' | 'send' | 'receive', ) => boolean; validateByMessageId: ( key: string, payload: unknown, ) => boolean; }; const fromSource: ( path: string | Record, options?: { msgIdentifier?: string; ignoreArray?: boolean, path?: string }, ) => Promise; }