import { Provider } from '@loopback/core' ; import { Config , PubNubMessage , PubNubNotification , } from 'loopback4-notifications' ; export class PubNubMockProvider implements Provider < PubNubNotification > { value ( ) { return { publish : async ( message ) => { return ; } , grantAccess : async ( config ) => { return { ttl : 4 , } ; } , revokeAccess : async ( config ) => { return { success : true , } ; } , } ; } }