css-import-lexer.d.ts 634 B

12345678910111213141516171819
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.dev/license
  7. */
  8. /**
  9. * Scans a CSS or Sass file and locates all valid import/use directive values as defined by the
  10. * syntax specification.
  11. * @param contents A string containing a CSS or Sass file to scan.
  12. * @returns An iterable that yields each CSS directive value found.
  13. */
  14. export declare function findImports(contents: string, sass: boolean): Iterable<{
  15. start: number;
  16. end: number;
  17. specifier: string;
  18. fromUse?: boolean;
  19. }>;