namespace Leaf { export namespace Foreground { export class ChannelForegroundEnd { } export class ChannelForegroundLayer { private context: ServiceContext private rpc = new RPCComposer() private invokeBackgroundServiceAPI = this.rpc.createRPCInvokeInterface<{ service: string api: string data: any }, any>({ name: "invokeBackgroundServiceAPI" }) private connectBackgroundLayer = this.rpc.createRPCInvokeInterface({ name: "connectBackgroundLayer" }) constructor(public version: string = "0") { } } } }