UNPKG

@infinityfx/fluid

Version:

React UI library, using zero-runtime CSS-in-JS.

31 lines (30 loc) 1.29 kB
import { GLOBAL_CONTEXT } from '../src/core/shared'; export declare function printProgress(progress: number): void; export type Stats = { index: number; entries: number; start: number; compiled: number; files: { name: string; size: number; }[]; }; export declare const emptyStats: (entries: number) => Stats; export declare function printStats(stats: Stats): void; export declare function matchBrackets(content: string, start: number, type?: '{}' | '()' | '[]'): number; export declare function replace(content: string, from: number, to: number, by: string): string; export declare function stripImports(content: string): string; export declare const keyFromImport: (str: string) => string; export declare function extractImports(content: string, namespace: string): (string | null)[]; export declare function getContext(isDev?: boolean): Promise<typeof GLOBAL_CONTEXT>; export type IOHelper = { root: string; parent: string; timestamp: number; module(file: string): Promise<React.FunctionComponent<any>>; source(file: string): string; output(file: string, content: string): void; override(file: string, content: string): void; }; export declare function getIOHelper(base: string, isInternal?: boolean): IOHelper | null;