UNPKG

504 BTypeScriptView Raw
1import type { Plugin } from 'postcss';
2import { type ExportTokens } from './css-modules-loader-core';
3type Dictionary<T> = {
4 [key: string]: T | undefined;
5};
6export default class FileSystemLoader {
7 private root;
8 private sources;
9 private importNr;
10 private core;
11 tokensByFile: Dictionary<ExportTokens>;
12 constructor(root: string, plugins?: Plugin[]);
13 fetch(_newPath: string, relativeTo: string, _trace?: string, initialContents?: string): Promise<ExportTokens>;
14}
15export {};