2025-11-13 13:13:34 -07:00

22 lines
616 B
TypeScript

import * as unenv from 'unenv';
import { Preset } from 'unenv';
/**
* Creates the Cloudflare preset for the given compatibility date and compatibility flags
*
* @param compatibilityDate workerd compatibility date
* @param compatibilityFlags workerd compatibility flags
* @returns The cloudflare preset
*/
declare function getCloudflarePreset({ compatibilityDate, compatibilityFlags, }: {
compatibilityDate?: string;
compatibilityFlags?: string[];
}): Preset;
/**
* @deprecated Use getCloudflarePreset instead.
*/
declare const cloudflare: unenv.Preset;
export { cloudflare, getCloudflarePreset };