export type messageTo =
	| {
			code: "ping";
	  }
	| {
			code: "close";
	  }
	| {
			code: "replace";
	  }
	| {
			code: "CheckUpdate";
	  }
	| {
			code: "clearCdnCache";
	  }
	| {
			code: "isValid";
			url: string;
	  }
	| {
			code: "isDev";
			dev: boolean;
	  }
	| {
			code: "apiUrls";
			hosts?: string[];
	  }
	| {
			code: "canRefresh";
			host: string;
	  }
	| {
			code: "refreshedUrl";
			oldurl: string;
			url: string;
	  };
export type messageFrom =
	| {
			code: "pong";
			count: number;
	  }
	| {
			code: "close";
	  }
	| {
			code: "closing";
	  }
	| {
			code: "updates";
			updates: boolean;
	  }
	| {
			code: "isValid";
			url: string;
			valid: boolean;
	  }
	| {
			code: "trace";
			trace: string[];
	  }
	| {
			code: "refreshURL";
			url: string;
	  };
