/** * 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. * * */ import type { StyleXOptions } from '../common-types'; type WhenSelector = `:${string}` | `[${string}`; /** * Creates selector that observes if the given pseudo-class is * active on an ancestor with the "defaultMarker" * * * @param pseudo - The pseudo selector (e.g., ':hover', ':focus') * @returns A :where() clause for the ancestor observer */ export declare function ancestor( pseudo: WhenSelector, options?: string | StyleXOptions, ): string; /** * Creates selector that observes if the given pseudo-class is * active on a descendant with the "defaultMarker" * * @param pseudo - The pseudo selector (e.g., ':hover', ':focus') * @returns A :has() clause for the descendant observer */ export declare function descendant( pseudo: WhenSelector, options?: string | StyleXOptions, ): string; /** * Creates selector that observes if the given pseudo-class is * active on a previous sibling with the "defaultMarker" * * @param pseudo - The pseudo selector (e.g., ':hover', ':focus') * @returns A :where() clause for the previous sibling observer */ export declare function siblingBefore( pseudo: WhenSelector, options?: string | StyleXOptions, ): string; /** * Creates selector that observes if the given pseudo-class is * active on a next sibling with the "defaultMarker" * * @param pseudo - The pseudo selector (e.g., ':hover', ':focus') * @returns A :has() clause for the next sibling observer */ export declare function siblingAfter( pseudo: WhenSelector, options?: string | StyleXOptions, ): string; /** * Creates selector that observes if the given pseudo-class is * active on any sibling with the "defaultMarker" * * @param pseudo - The pseudo selector (e.g., ':hover', ':focus') * @returns A :where() clause for the any sibling observer */ export declare function anySibling( pseudo: WhenSelector, options?: string | StyleXOptions, ): string;