import type { IncomingMessage, ServerResponse } from "node:http";
import type { AuthRateLimiter } from "./auth-rate-limit.js";
import type { ResolvedGatewayAuth } from "./auth.js";
type OpenAiHttpOptions = {
    auth: ResolvedGatewayAuth;
    maxBodyBytes?: number;
    trustedProxies?: string[];
    allowRealIpFallback?: boolean;
    rateLimiter?: AuthRateLimiter;
};
export declare function handleOpenAiHttpRequest(req: IncomingMessage, res: ServerResponse, opts: OpenAiHttpOptions): Promise<boolean>;
export {};
