UNPKG

@pulzar/core

Version:

Next-generation Node.js framework for ultra-fast web applications with zero-reflection DI, GraphQL, WebSockets, events, and edge runtime support

50 lines 1.45 kB
/** * Minimal Edge Runtime Polyfills * Provides essential compatibility shims for Node.js APIs in edge environments * Optimized for size and security */ declare const platformPolyfills: { readonly cloudflare: () => void; readonly vercel: () => void; readonly deno: () => void; readonly netlify: () => void; }; /** * Apply platform-specific polyfills */ export declare function applyPlatformPolyfills(platform: keyof typeof platformPolyfills): void; /** * Check if we're running in an edge environment */ export declare function isEdgeEnvironment(): boolean; /** * Get platform-specific feature availability */ export declare function getPlatformFeatures(): { hasWebStreams: boolean; hasWebCrypto: boolean; hasTextEncoder: boolean; hasTextDecoder: boolean; hasURL: boolean; hasURLSearchParams: boolean; hasHeaders: boolean; hasRequest: boolean; hasResponse: boolean; hasFetch: boolean; hasWebSocket: boolean; }; /** * Validate edge environment capabilities */ export declare function validateEdgeEnvironment(): { compatible: boolean; missing: string[]; }; declare const _default: { applyPlatformPolyfills: typeof applyPlatformPolyfills; isEdgeEnvironment: typeof isEdgeEnvironment; getPlatformFeatures: typeof getPlatformFeatures; validateEdgeEnvironment: typeof validateEdgeEnvironment; }; export default _default; //# sourceMappingURL=polyfills.d.ts.map