/**
 * @license
 * Copyright 2026 Amodal Labs, Inc.
 * SPDX-License-Identifier: MIT
 */
import type { StudioUser } from './types';
/**
 * Authentication interface for the studio.
 * Implement this to provide custom user resolution (e.g. JWT verification).
 * The default implementation returns a fixed local-dev user.
 */
export interface StudioAuth {
    getUser(req: Request): Promise<StudioUser>;
}
/**
 * Set a custom auth provider. When set, {@link getUser} delegates to it
 * instead of the default local-dev auth.
 *
 * Call once at application startup.
 * Pass `null` to revert to the default local-dev behavior.
 */
export declare function setAuthProvider(provider: StudioAuth | null): void;
/**
 * Get the authenticated user from the request.
 *
 * If a custom auth provider has been set via {@link setAuthProvider},
 * delegates to it. Otherwise returns the local-dev user.
 */
export declare function getUser(req: Request): Promise<StudioUser>;
