import { AgentSession } from './EvAgentSession.interface' ; export function tabManagerEnabled ( ) { return function ( target , key , descriptor ) { const originalMethod = descriptor . value ; descriptor . value = function ( ... args ) { if ( ( this as AgentSession ) . tabManagerEnabled ) { return originalMethod . apply ( this , args ) ; } } ; return descriptor ; } ; }