/// <reference types="astro/client" />
/// <reference types="node" />

interface ImportMetaEnv {
  readonly PUBLIC_API_BASE_URL?: string;
  readonly PUBLIC_COMMENT_TURNSTILE_SITE_KEY?: string;
  readonly PUBLIC_WEB_PUSH_VAPID_PUBLIC_KEY?: string;
}

interface ImportMeta {
  readonly env: ImportMetaEnv;
}

declare global {
  interface Window {
    __TERMI_I18N__?: {
      locale: string;
      messages: Record<string, unknown>;
    };
    __termiCommentsReady?: boolean;
    __termiHomeReady?: boolean;
    __termiSubscriptionPopupReady?: boolean;
    __termiTranslate: (
      key: string,
      params?: Record<string, string | number | null | undefined>
    ) => string;
  }
}

export {};
