/** * Feature Mapping Layer * Maps frontend feature keys to backend API feature keys * This allows backward compatibility with existing components */ import { FeatureKey } from "./PlanLimits.types"; export type LegacyFeatureKey = "events" | "activities" | "inventoryItems" | "baths" | "mediums" | "incomes" | "outcomes" | "financialAccounts" | "reports"; export declare const LEGACY_TO_API_FEATURE_MAP: Record; export declare const API_TO_LEGACY_FEATURE_MAP: Partial>; /** * Convert legacy feature key to API feature key */ export declare const toAPIFeatureKey: (legacyKey: LegacyFeatureKey) => FeatureKey; /** * Convert API feature key to legacy feature key */ export declare const toLegacyFeatureKey: (apiKey: FeatureKey) => LegacyFeatureKey; /** * Legacy usage counts structure (for backward compatibility) */ export interface LegacyUsageCounts { periodStart: string; periodEnd: string; events: number; activities: number; inventoryItems: number; baths: number; mediums: number; incomes: number; outcomes: number; financialAccounts: number; reports: number; } /** * API usage counts structure (matching backend) */ export interface APIUsageCounts { periodStart: string; periodEnd: string; events: number; members: number; activities: number; inventoryItems: number; bankAccounts: number; incomingTransactions: number; outcomeTransactions: number; ritualBaths: number; } /** * Convert legacy usage counts to API format */ export declare const toAPIUsageCounts: (legacy: LegacyUsageCounts) => APIUsageCounts; /** * Convert API usage counts to legacy format */ export declare const toLegacyUsageCounts: (api: APIUsageCounts) => LegacyUsageCounts; /** * Legacy display names (Portuguese) */ export declare const LEGACY_FEATURE_DISPLAY_NAMES: Record;