import { ApiError as ApiNextError } from "next/dist/server/api-utils/index.js";
import { isDynamicServerError } from "next/dist/client/components/hooks-server-context.js";
/** @monorepo-internal */
export declare class ApiError extends ApiNextError {
}
/** @monorepo-internal */
export declare const fdIsDynamicServerError: typeof isDynamicServerError;
/** @monorepo-internal */
export declare function fdCookies(): Promise<import("next/dist/server/web/spec-extension/adapters/request-cookies").ReadonlyRequestCookies>;
/** @monorepo-internal */
export declare function fdHeaders(): Promise<import("next/dist/server/web/spec-extension/adapters/headers").ReadonlyHeaders>;
/**
 * Redirects to the specified URL.
 *
 * @param url - Target URL to redirect.
 */
export declare function fdRedirect(url: string): any;
