declare const SUPABASE_PROVIDER = "supabase"; export interface SupabaseUsageHealthPayload { projects?: readonly SupabaseProject[]; usage?: readonly SupabaseProjectUsage[]; health?: readonly SupabaseProjectHealth[]; unavailable?: readonly SupabaseUnavailableSurface[]; } export interface SupabaseProject { id?: string; ref?: string; name?: string; region?: string; status?: string; organization_id?: string; } export interface SupabaseProjectUsage { ref?: string; projectRef?: string; apiCounts?: SupabaseApiCountsResponse; apiRequestsCount?: SupabaseApiRequestsCountResponse; } export interface SupabaseApiCountsResponse { result?: readonly SupabaseApiCountsRow[]; data?: readonly SupabaseApiCountsRow[]; } export interface SupabaseApiCountsRow { timestamp?: string; total_auth_requests?: number | string; total_realtime_requests?: number | string; total_rest_requests?: number | string; total_storage_requests?: number | string; } export interface SupabaseApiRequestsCountResponse { result?: readonly SupabaseApiRequestsCountRow[]; data?: readonly SupabaseApiRequestsCountRow[]; } export interface SupabaseApiRequestsCountRow { count?: number | string; } export interface SupabaseProjectHealth { ref?: string; projectRef?: string; services?: readonly SupabaseProjectHealthService[]; result?: readonly SupabaseProjectHealthService[] | Record; data?: readonly SupabaseProjectHealthService[] | Record; } export interface SupabaseProjectHealthService { name?: string; service?: string; status?: string; message?: string; error?: string; } export interface SupabaseUnavailableSurface { surface: "projects" | "usage.api-counts" | "usage.api-requests-count" | "health"; ref?: string; } export interface SupabaseNormalizedSnapshotBundle { usage: readonly SupabaseUsageSnapshot[]; billing: readonly SupabaseBillingSnapshot[]; serviceHealth: readonly SupabaseServiceHealthSnapshot[]; costEstimates: readonly SupabaseCostEstimate[]; } export interface SupabaseUsageSnapshot { provider: typeof SUPABASE_PROVIDER; collectedAt: string; providerAccountRef: string; service: string; metric: "api_requests" | "auth_requests" | "realtime_requests" | "rest_requests" | "storage_requests"; unit: "requests"; value: number; } export interface SupabaseBillingSnapshot { provider: typeof SUPABASE_PROVIDER; collectedAt: string; periodStart: string; periodEnd: string; amountMinor: number; currency: string; status: string; } export interface SupabaseServiceHealthSnapshot { provider: typeof SUPABASE_PROVIDER; collectedAt: string; service: string; region?: string; status: "ok" | "degraded" | "down" | "unknown"; message?: string; } export interface SupabaseCostEstimate { provider: typeof SUPABASE_PROVIDER; collectedAt: string; periodStart: string; periodEnd: string; estimatedAmountMinor: number; currency: string; confidence: "low" | "medium" | "high"; } export interface NormalizeSupabaseUsageHealthInput { payload: SupabaseUsageHealthPayload; collectedAt: string; } export declare function normalizeSupabaseUsageHealth(input: NormalizeSupabaseUsageHealthInput): SupabaseNormalizedSnapshotBundle; export declare function redactedSupabaseProjectRef(ref: string): string; export {}; //# sourceMappingURL=normalize.d.ts.map