/**
 * Portal Token Utilities
 *
 * Provides functions for reading the portal token from cookies
 * in server components.
 *
 * Usage:
 * ```ts
 * import { getPortalToken } from '@riverbankcms/sdk/portal';
 * import { cookies } from 'next/headers';
 *
 * export default async function PortalPage() {
 *   const cookieStore = await cookies();
 *   const token = getPortalToken(cookieStore);
 *
 *   if (!token) {
 *     return <LoginForm />;
 *   }
 *
 *   return <CustomerPortal token={token} />;
 * }
 * ```
 */
/**
 * Cookie store interface (compatible with Next.js cookies())
 */
export interface CookieStore {
    get(name: string): {
        value: string;
    } | undefined;
}
/**
 * Get the portal token from the cookie store.
 *
 * @param cookieStore - The cookie store from `await cookies()`
 * @returns The portal token, or null if not present
 */
export declare function getPortalToken(cookieStore: CookieStore): string | null;
/**
 * Check if the user has a portal session.
 *
 * Note: This only checks if the cookie exists, not if it's valid.
 * The actual validation happens when making API calls.
 *
 * @param cookieStore - The cookie store from `await cookies()`
 * @returns True if a portal token cookie exists
 */
export declare function hasPortalSession(cookieStore: CookieStore): boolean;
