index.d.ts 681 B

123456789101112131415161718192021222324
  1. import type { Config } from "../types";
  2. export declare function cool(options: Config.Options): (import("vite").Plugin<any> | Promise<import("vite").Plugin<any>> | {
  3. name: string;
  4. enforce: "pre";
  5. config(): {
  6. css: {
  7. postcss: {
  8. plugins: {
  9. postcssPlugin: string;
  10. prepare(): {
  11. Rule(rule: any): void;
  12. Declaration(decl: any): void;
  13. };
  14. }[];
  15. };
  16. };
  17. };
  18. transform(code: string, id: string): {
  19. code: string;
  20. map: {
  21. mappings: string;
  22. };
  23. } | null;
  24. }[])[];