import type { ConvexHttpClient } from 'convex/browser'; export type AuthContext = { userId: string; apiKeyId: string; organizationId: string | null; }; export declare function resolveApiKey(): string | null; export declare function requireApiKey(): string; export declare function ensureAuthenticated(client: ConvexHttpClient, plaintext: string): Promise;