import type { ApifyClient } from '../apify_client.js';
import { type PricingTier } from './pricing_info.js';
export type CachedUserInfo = {
    userId: string | null;
    userPlanTier: PricingTier;
};
/**
 * Gets user info (id + plan tier) from token, using cache to avoid repeated API calls.
 * Token is hashed before caching to avoid storing raw tokens.
 *
 * Defensive defaults: returns `{ userId: null, userPlanTier: 'FREE' }` when the token is
 * missing/empty, the API call fails, or the plan is unrecognized. Failed lookups are NOT
 * cached so the next call retries.
 */
export declare function getUserInfoCached(token: string | undefined, apifyClient: ApifyClient): Promise<CachedUserInfo>;
//# sourceMappingURL=userid_cache.d.ts.map