UNPKG

@knapsack/app

Version:

Build Design Systems with Knapsack

24 lines 755 B
import { KsFileSaver } from '@knapsack/types'; export { isRemoteUrl } from '@knapsack/utils'; export declare function fileExistsOrExit(filePath: string, msg?: string): void; /** * Useful for taking code generated on the server and transpiling it to the client * @example * function run(name: string) { * console.log(name); * } * const html = ` * <script> * ${run.toString()} * ${run.name}('hi!'); * </script> * `; * const transpiled = babelCodeForBrowser({ code: html }); */ export declare const babelCodeForBrowser: (opt: { code: string; minified?: boolean; }) => Promise<string>; export declare const getIsSavingLocally: () => boolean; export declare const saveFilesLocally: KsFileSaver; //# sourceMappingURL=server-utils.d.ts.map