import Stylis from "stylis"; import { CSSCompiler } from "./css-core"; declare const ContextTypes: { POST_PROCESS: -2; PREPARATION: -1; NEW_LINE: 0; PROPERTY: 1; SELECTOR_BLOCK: 2; AT_RULE: 3; }; /** get union of object value types */ declare type ObjectValueTypes = T[keyof T]; declare type StylisContext = ObjectValueTypes; /** * Implement custom CSS selectors for the child elements */ export declare function createSelectorsPlugin(): (context: StylisContext, content: string, selectors: string, parent: string, line: number, column: number, length: number) => string | undefined; /** * Borrowed from https://github.com/thysultan/stylis.js/blob/4561e9bc830fccf1cb0e9e9838488b4d1d5cebf5/plugins/rule-sheet/index.js#L29 */ export declare function createInsertRule(insertRule: (rule: string) => void): (context: StylisContext, content: string, selectors: string, parent: string, line: number, column: number, length: number, ns: number, depth: number, at: number) => string | undefined; /** * Extend given Stylis instance to delimite CSS rules with a comment blocks and * add the element selector plugin */ export declare function adaptStylis(stylis: typeof Stylis): CSSCompiler; export {};