import { type 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