import { QuotaInfo } from '../lib/billing/types'; /** * Hook to check quota usage for a specific limit * * @param limitSlug - The slug of the limit to check (e.g., 'projects', 'team_members') * @returns QuotaInfo - Current usage, max limit, and whether action is allowed * * @example * ```tsx * const projectsQuota = useQuota('projects') * if (!projectsQuota.allowed) { * toast.error('Project limit reached. Please upgrade your plan.') * } * ``` */ export declare function useQuota(limitSlug: string): { isLoading: boolean; error: Error | null; refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise>; allowed: boolean; current: number; max: number; remaining: number; percentUsed: number; }; //# sourceMappingURL=useQuota.d.ts.map