UNPKG

579 BTypeScriptView Raw
1import { CoreTypes } from '../../core-types';
2import { Color } from '../../color';
3export interface CSSShadow {
4 inset: boolean;
5 offsetX: CoreTypes.LengthType;
6 offsetY: CoreTypes.LengthType;
7 blurRadius?: CoreTypes.LengthType;
8 spreadRadius?: CoreTypes.LengthType;
9 color: Color;
10}
11/**
12 * Parse a string into a CSSShadow
13 * Supports any valid css box/text shadow combination.
14 *
15 * inspired by https://github.com/jxnblk/css-box-shadow/blob/master/index.js (MIT License)
16 *
17 * @param value
18 */
19export declare function parseCSSShadow(value: string): CSSShadow;