UNPKG

reboost

Version:

A super fast dev server for rapid web development

21 lines (20 loc) 834 B
import { Plugin, Root } from 'postcss'; export declare type Modes = 'global' | 'local' | 'pure'; export declare const localByDefault: (options: { mode: Modes; }) => Plugin; export declare const extractImports: () => Plugin; export declare const moduleValues: () => Plugin; export declare const moduleScope: (options: { generateScopedName?: (rawName: string, from: string, css: string) => string; generateExportEntry?: (rawName: string, scopedName: string, from: string, css: string) => { key: string; value: string; }; exportGlobals?: boolean; }) => Plugin; export interface ExtractedICSS { icssImports: Record<string, Record<string, string>>; icssExports: Record<string, string>; } export declare const extractICSS: (css: Root, removeRules?: boolean) => ExtractedICSS;