import StyleSheet from '../sheet'; import { ExecutionContext, RuleSet, Stringifier } from '../types'; type InstanceEntry = { name: string; rules: string[]; }; /** Test-only. Live instances sharing a component id on a sheet; bundles drop it as unused. */ export declare function liveInstanceCount(styleSheet: StyleSheet, componentId: string): number; export declare function getInstance(styleSheet: StyleSheet, componentId: string, instance: number): InstanceEntry | undefined; export declare function deleteInstance(styleSheet: StyleSheet, componentId: string, instance: number): void; export default class GlobalStyle { componentId: string; isStatic: boolean; rules: RuleSet; constructor(rules: RuleSet, componentId: string); removeStyles(instance: number, styleSheet: StyleSheet): void; renderStyles(instance: number, executionContext: ExecutionContext & Props, styleSheet: StyleSheet, stylis: Stringifier): void; private buildEntry; private computeRules; /** This id's entries on the sheet, created on first use. */ private entriesFor; /** * Clear the shared group and re-insert every surviving entry on the sheet, including * those of other globals with the same id, in mount order (see docs/global-styles.md). * Must run synchronously: nothing may yield between clear and re-insert. */ private rebuildGroup; } export {};