UNPKG

840 BTypeScriptView Raw
1import { TW } from 'twind';
2export * from 'twind';
3export * from 'twind/sheets';
4
5/**
6 * Options for {@link shim}.
7 */
8interface ShimOptions {
9 /**
10 * Custom {@link twind.tw | tw} instance to use (default: {@link twind.tw}).
11 */
12 tw?: TW;
13}
14/**
15 * Shim the passed html.
16 *
17 * 1. tokenize the markup and process element classes with either the
18 * {@link twind.tw | default/global tw} instance or a {@link ShimOptions.tw | custom} instance
19 * 2. populate the provided sheet with the generated rules
20 * 3. output the HTML markup with the final element classes
21
22 * @param markup the html to shim
23 * @param options to use
24 * @return the HTML markup with the final element classes
25 */
26declare const shim: (markup: string, options?: TW | ShimOptions) => string;
27
28export { ShimOptions, shim };
29//# sourceMappingURL=server.d.ts.map