import type { ReactElement } from "react"; import { type StyleProp, type ViewStyle } from "react-native"; /** * The style that blurs what a modal scrim dims, for the scrim's own style array: Dark * Factory's 2 px backdrop blur under glass on the web, and null wherever the functional * layer's material resolves solid (solid mode, Reduce Transparency, Increase Contrast, a * browser without a backdrop filter) and on every other platform, so a solid scrim's markup * is unchanged. */ export declare function useScrimFrost(): ViewStyle | null; /** * A scrim that holds its modal's card (Dialog, AlertDialog): the style for its role node and * the layer to render as that node's first child. Under glass on the web the layer carries * the scrim's dim as its own background over Dark Factory's 2 px backdrop blur, one element as * Dark Factory's scrim is, so the blur samples the page and never the dim, and the role node * paints no dim of its own; the layer fills the node with its corners, pointer-transparent * and hidden from assistive technology, beneath the card, whose own frost then samples the * dimmed page (the node itself never wears a backdrop filter, which would cut the card's frost * off from the page). Wherever `useScrimFrost` returns null (solid mode, Reduce Transparency, * Increase Contrast, a browser without a backdrop filter) the node keeps `backdrop` untouched * and there is no layer, so a solid scrim's markup is unchanged. * * A layer that only blurred, beneath a node that wore the dim, sampled that dim: invisible on a * full-window scrim, whose straight edges clamp, but a light fringe at a contained scrim's * rounded corners, where the blur pulled the undimmed page outside the curve into the dim * (glass-surface-scrim-self-sample-1). */ export declare function useHeldScrim(backdrop: StyleProp): { style: StyleProp; layer: ReactElement | null; }; //# sourceMappingURL=scrim-frost.d.ts.map