export interface TwikooConfig { envId: string; region?: string; el?: string | HTMLElement; path?: string; lang?: string; theme?: string; locale?: Record; [key: string]: string | HTMLElement | undefined; } export interface TwikooAPI { (config: TwikooConfig): Promise; } declare module "twikoo" { export const twikoo: TwikooAPI; export default twikoo; } declare module "#app" { interface NuxtApp { $twikoo: TwikooAPI; } }