import { StyleAst, StyleSelector } from './parser/ast'; export declare type StylesLookupTable = Record; export interface CacheLine { tail: string; } export declare type StyleFiles = Record; export declare type StyleDef = Record>; export declare type UsedTypes = string[]; export declare type UsedTypesRef = Record; export interface AbstractStyleDefinition { isReady: boolean; lookup: StylesLookupTable; ast: Readonly; } export interface SyncStyleDefinition { isReady: true; lookup: StylesLookupTable; ast: Readonly; } export interface StyleChunk { file: string; css: string; } export declare type FlagType = Record; export declare type StyleDefinition = Readonly<{ isReady: boolean; lookup: Readonly; ast: Readonly; urlPrefix: string; then(resolve?: () => void, reject?: () => void): Promise; }>; export declare type SerializedStyleDefinition = Readonly<{ lookup: Readonly; ast: Readonly; urlPrefix: string; }>; /** * A function used to control which selectors should be used * @param selector - DEPRECATED * @param {StyleSelector} rule - a reference to a rule */ export declare type SelectionFilter = { (selector: string, rule: StyleSelector): boolean; /** * Class discovery helper * @see {@link https://github.com/theKashey/used-styles/issues/30} * @internal */ introduceClasses?(classes: string[]): void; };