/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ export type OrderedCSSStyleSheet = Readonly<{ getTextContent: () => string; insert: (cssText: string, groupValue: number) => void; update: (oldCssText: string, newCssText: string, groupValue: number) => void; }>; /** * Order-based insertion of CSS. * * Each rule is associated with a numerically defined group. * Groups are ordered within the style sheet according to their number, with the * lowest first. * * Groups are implemented using marker rules. The selector of the first rule of * each group is used only to encode the group number for hydration. An * alternative implementation could rely on CSSMediaRule, allowing groups to be * treated as a sub-sheet, but the Edge implementation of CSSMediaRule is * broken. * https://developer.mozilla.org/en-US/docs/Web/API/CSSMediaRule * https://gist.github.com/necolas/aa0c37846ad6bd3b05b727b959e82674 */ export declare function createOrderedCSSStyleSheet( sheet: null | undefined | CSSStyleSheet, ): OrderedCSSStyleSheet;