import { PostFiltering } from "../post-filtering";

export {};

declare global {
  interface Window {
    /**
     * Current admin page (only on admin pages)
     */
    adminpage?: string;

    /**
     * Custom inoby variables
     */
    inoby_vars: {
      ajax: {
        url: string;
        nonce: string;
      };
      rest: {
        url: string;
        nonce: string;
      };
      currency?: {
        symbol: string;
      };
      recaptcha?: {
        site_key: string;
      };
      wpbs_calendar_drag?: boolean;
      wpbs_extend?: {
        datepicker?: boolean;
      };
    };

    inoby_post_filter: PostFiltering;

    /**
     * Google reCAPTCHA v3 API
     */
    grecaptcha?: {
      ready: (callback: () => void) => void;
      execute: (siteKey: string, options: { action: string }) => Promise<string>;
    };
  }
}
