1 | import { ThemeSection, Directive, CSSRules, Context } from 'twind';
|
2 |
|
3 | declare module 'twind' {
|
4 | interface Theme {
|
5 | aspectRatio?: ThemeSection<string>;
|
6 | }
|
7 | }
|
8 | interface Ratio {
|
9 | w: string | number;
|
10 | h: string | number;
|
11 | }
|
12 | interface AspectRatio {
|
13 | (ratio: 'none' | `${number}/${number}` | Ratio): Directive<CSSRules>;
|
14 | (width: string | number, height: string | number): Directive<CSSRules>;
|
15 | (parts: string[], context: Context): Directive<CSSRules>;
|
16 | }
|
17 | declare const aspectRatio: AspectRatio;
|
18 |
|
19 | export { AspectRatio, Ratio, aspectRatio };
|
20 |
|