import type { TextBackgroundProps } from '../component/Text';
export declare const LabelZIndexProvider: import("react").Provider<number | undefined>;
export declare function useLabelZIndex(): number | undefined;
/**
 * Returns the zIndex for the backgrounds of labels rendered at `labelZIndex`.
 * An explicit `zIndex` in the background settings wins.
 * Otherwise, the backgrounds render `labelBackgroundGap` layers below the labels,
 * which is `DefaultZIndexes.labelBackground` for labels in the default label layer.
 * A result of 0 becomes -1, because zIndex 0 renders inside the label's own layer.
 * Labels in the default layer (zIndex 0 or `undefined`) render without portals,
 * so they get only the explicit `zIndex`, or `undefined`.
 *
 * @param labelZIndex zIndex of the label or label list
 * @param background `background` prop of the label or label list
 * @returns zIndex of the label backgrounds
 */
export declare function getLabelBackgroundZIndex(labelZIndex: number | undefined, background: boolean | TextBackgroundProps | undefined): number | undefined;
