sandbox.d.ts 872 B

12345678910111213141516171819202122232425
  1. import type { NodejsRequestData, FetchEventResult } from '../types';
  2. import { EdgeFunctionDefinition } from '../../../build/webpack/plugins/middleware-plugin';
  3. import type { EdgeRuntime } from 'next/dist/compiled/edge-runtime';
  4. export declare const ErrorSource: unique symbol;
  5. declare type RunnerFn = (params: {
  6. name: string;
  7. env: string[];
  8. onWarning?: (warn: Error) => void;
  9. paths: string[];
  10. request: NodejsRequestData;
  11. useCache: boolean;
  12. edgeFunctionEntry: Pick<EdgeFunctionDefinition, 'wasm' | 'assets'>;
  13. distDir: string;
  14. }) => Promise<FetchEventResult>;
  15. export declare const getRuntimeContext: (params: {
  16. name: string;
  17. onWarning?: any;
  18. useCache: boolean;
  19. env: string[];
  20. edgeFunctionEntry: any;
  21. distDir: string;
  22. paths: string[];
  23. }) => Promise<EdgeRuntime<any>>;
  24. export declare const run: RunnerFn;
  25. export {};