import axios from 'axios';

import { route as ziggyRoute } from '../../../vendor/tightenco/ziggy/dist/index.js';

declare global {
  var route: typeof ziggyRoute;

  interface Window {
    axios: typeof axios;
    route: typeof ziggyRoute;
    Ziggy?: Parameters<typeof ziggyRoute>[3];
    gtag?: (...args: unknown[]) => void;
    posthog?: {
      capture: (event: string, properties?: Record<string, unknown>) => void;
      identify: (userId: string, properties?: Record<string, unknown>) => void;
      getFeatureFlag: (key: string) => string | boolean | undefined | null;
      onFeatureFlags: (callback: () => void) => void;
    };
  }
}

export {};
