/// <reference path="../.astro/types.d.ts" />

// Extend Astro.locals with custom properties set by middleware
declare namespace App {
  interface Locals {
    user?: {
      id?: string;
      username?: string;
      user?: string;
      roles?: string[];
      [key: string]: unknown;
    };
    whitelabel?: string | null;
    isSubsite?: boolean;
    refreshedCookies?: string[];
    accessDenied?: boolean | null;
    requiredRoles?: string[];
  }
}
