import { StyleAst , StyleSelector } from './parser/ast' ; export type StylesLookupTable = Record < string , string [ ] > ; export interface CacheLine { tail : string ; } export type StyleFiles = Record < string , string > ; export type StyleDef = Record < string , Record < string , boolean > > ; export type UsedTypes = string [ ] ; export type UsedTypesRef = Record < string , boolean > ; export interface SyncStyleDefinition { isReady : true ; lookup : StylesLookupTable ; ast : StyleAst ; } export interface StyleChunk { file : string ; css : string ; } export type FlagType = Record < string , boolean > ; export type StyleDefinition = Readonly < { isReady : boolean ; lookup : Readonly < StylesLookupTable > ; ast : Readonly < StyleAst > ; urlPrefix : string ; then ( resolve ? , reject ? ) : Promise < void > ; } > ; param selector param { StyleSelector } rule export type SelectionFilter = ( selector : string , rule : StyleSelector ) => boolean ;