/**
 * Portal API Configuration Utilities
 *
 * Provides functions for creating BlockApiConfig for the customer portal.
 *
 * Usage:
 * ```ts
 * import { createPortalApiConfig } from '@riverbankcms/sdk/portal';
 * import { BlockApiProvider } from '@riverbankcms/blocks/client';
 *
 * export default async function PortalPage() {
 *   const token = getPortalToken(await cookies());
 *   const config = createPortalApiConfig({
 *     token,
 *     siteId: 'your-site-id',
 *     dashboardUrl: 'https://app.riverbankcms.com',
 *   });
 *
 *   return (
 *     <BlockApiProvider config={config}>
 *       <CustomerPortal />
 *     </BlockApiProvider>
 *   );
 * }
 * ```
 */
/**
 * Block API configuration for the portal
 */
export interface PortalApiConfig {
    baseUrl: string;
    auth: {
        type: 'bearer';
        token: string;
    };
    siteId: string;
}
export interface CreatePortalApiConfigOptions {
    /**
     * The portal session token (from cookie)
     */
    token: string;
    /**
     * The site ID
     */
    siteId: string;
    /**
     * The dashboard URL (e.g., 'https://app.riverbankcms.com')
     */
    dashboardUrl: string;
}
/**
 * Create a BlockApiConfig for the customer portal.
 *
 * @param options - Configuration options
 * @returns BlockApiConfig for use with BlockApiProvider
 */
export declare function createPortalApiConfig(options: CreatePortalApiConfigOptions): PortalApiConfig;
/**
 * Create a login URL for the portal.
 *
 * Use this to build the URL for the magic link login form action.
 *
 * @param dashboardUrl - The dashboard URL
 * @returns The send-magic-link API endpoint URL
 */
export declare function getPortalLoginUrl(dashboardUrl: string): string;
