UNPKG

2.07 kBTypeScriptView Raw
1import { Hasher, InjectorConfig, Injector, ConfigurationOptions, Instance, Prefixer, Mode, PluginApply, Declarations, ClassNameCreator, ThemeResolver } from '@beamwind/types';
2
3declare const cyrb32: Hasher;
4
5/**
6 * Creates an injector which collects style rules during server-side rendering.
7 */
8declare const virtualInjector: ({ target }?: InjectorConfig<string[]>) => Injector<string[]>;
9/**
10 * Creates an injector which inserts style rules through the CSS Object Model.
11 */
12declare const cssomInjector: ({ nonce, target, }?: InjectorConfig<CSSStyleSheet>) => Injector<CSSStyleSheet>;
13/**
14 * An injector placeholder which performs no operations. Useful for avoiding errors in a non-browser environment.
15 */
16declare const noOpInjector: () => Injector<null>;
17
18declare const createInstance: (options?: ConfigurationOptions | ConfigurationOptions[] | undefined) => Instance;
19
20declare const autoprefix: Prefixer;
21declare const noprefix: Prefixer;
22
23declare const mode: (report: (message: string) => void) => Mode;
24declare const warn: Mode;
25declare const strict: Mode;
26
27declare const join: (parts: readonly string[], separator?: string) => string;
28declare const tail: <T extends string | readonly unknown[]>(array: T, startIndex?: number) => T;
29
30declare const apply: PluginApply;
31declare const corners: (value: string | string[] | undefined, position: string, prefix?: string | undefined, suffix?: string | undefined) => Declarations | undefined;
32declare const expandEdges: (key: string) => string[] | undefined;
33declare const edges: (value: string | string[] | undefined, position: string, prefix?: string | undefined, suffix?: string | undefined) => Declarations | undefined;
34
35declare const bw: ClassNameCreator;
36declare const setup: (options?: ConfigurationOptions | ConfigurationOptions[] | undefined) => void;
37declare const theme: ThemeResolver;
38
39export { apply, autoprefix, bw, corners, createInstance, cssomInjector, cyrb32, edges, expandEdges, join, mode, noOpInjector, noprefix, setup, strict, tail, theme, virtualInjector, warn };
40//# sourceMappingURL=core.d.ts.map