CookieConfiguration.openOffCanvas cannot call from custom made jquery plugin

Hi Guys,
I am new to shopware 6 platform. I am trying to load the openOffCanvas from CookieConfiguration plugin on one of custom jquery plugin.

I have used the script as follows,

import CookieConfiguration from ‚src/plugin/cookie/cookie-configuration.plugin‘;


_onClickButton() {
CookieConfiguration.openOffCanvas();
}

But whenever I try, I am getting an error,

Uncaught TypeError: o.b.openOffCanvas is not a function

But when I try, CookieConfiguration.prototype.openOffCanvas(); but which cause the inner functions not able to load. Get the same kind of errors.

Can you guys share what have I done wrong here.

Thank you