car-crushers-portal/index.d.ts
2023-10-19 16:49:09 -04:00

30 lines
666 B
TypeScript

import type { EmotionCache } from "@emotion/utils";
declare global {
module "*.css";
interface Env {
ASSETS: Fetcher;
DATA: KVNamespace;
[k: string]: string;
}
type RequestContext = EventContext<Env, string, { [k: string]: any }>;
interface EmotionCriticalToChunks {
html: string;
styles: { key: string; ids: string[]; css: string }[];
}
interface EmotionServer {
constructStyleTagsFromChunks: (
criticalData: EmotionCriticalToChunks
) => string;
extractCriticalToChunks: (html: string) => EmotionCriticalToChunks;
}
export function createEmotionServer(cache: EmotionCache): EmotionServer;
}
export {};