import { IDialog } from './services/dialog';
import { IErrors } from './services/errors';
import { ILang } from './services/lang';
import { INotification } from './services/notifications';
import { IStorage } from './services/storage';
import { ITheme } from './services/theme';

declare global {
	interface Window {
		notification: INotification,
		store: IStorage,
		theme: ITheme,
		lang: ILang,
		errors: IErrors,
		dialog: IDialog,

		query(name: string, parent?: Element): Element,
	}

	interface MockRequest {
		url: string;
		method: string;
		searchParams: {[key: string]: string},
		body: unknown;
		signal: unknown;
	}
}
