/// <reference path="../../../node_modules/@gravitywiz/types/index.d.ts" />

import type { Operators } from "./types";

export {};

type StringBoolean = '0' | '1';

declare global {
	interface Window {
		gp_conditional_pricing_form_settings_strings: {
			ajax_url: string;
			nonce: string;
			form_id: string;
			display_text: {
				add_new_pricing_level: string;
			};
			operator_labels: {
				[key in Operators]: string;
			};
			support_individual_products: StringBoolean;
			sample_csv_url: string;
			supports_csvs: StringBoolean;
		};
		gform_initialize_tooltips: () => void;
		GetRuleFields?: (
			objectType: string,
			ruleIndex: number,
			selectedFieldId: string
		) => string;
	}

	interface WPAjaxJSONResponse {
		success: boolean
		data: any
	}
}
