index.d.ts 794 B

1234567891011121314151617181920
  1. import type { webpack } from 'next/dist/compiled/webpack/webpack';
  2. export declare function startedDevelopmentServer(appUrl: string, bindAddr: string): void;
  3. declare type AmpStatus = {
  4. message: string;
  5. line: number;
  6. col: number;
  7. specUrl: string | null;
  8. code: string;
  9. };
  10. export declare type AmpPageStatus = {
  11. [page: string]: {
  12. errors: AmpStatus[];
  13. warnings: AmpStatus[];
  14. };
  15. };
  16. export declare function formatAmpMessages(amp: AmpPageStatus): string;
  17. export declare function ampValidation(page: string, errors: AmpStatus[], warnings: AmpStatus[]): void;
  18. export declare function watchCompilers(client: webpack.Compiler, server: webpack.Compiler, edgeServer: webpack.Compiler): void;
  19. export declare function reportTrigger(trigger: string): void;
  20. export {};