UNPKG

@react-native-paper-abstracted/cli

Version:

React Native Paper Abstracted is a package that allows you to use only the components you need from [React Native Paper](https://reactnativepaper.com). Thus allowing users to keep their app size small, and provides endless customization.

33 lines 1.74 kB
import "dotenv/config"; import { SourceFile, StringLiteral } from "ts-morph"; import { RNPAConfig } from "../../rnpa.config.js"; export declare const ensureString: (str: string | undefined | null) => string; export declare const hexToAnsi256: (sHex: string) => number; export declare const hex: (color: string) => (text: string) => string; export declare const turboRed: (text: string) => string; export declare const turboBlue: (text: string) => string; export declare const turboYellow: (text: string) => string; export declare const isDir: (dir: string | Buffer<ArrayBufferLike>) => boolean; export declare const isFile: (dir: string) => boolean; export declare const getModuleSpecifier: (sourceFile: SourceFile | undefined) => StringLiteral[]; export declare const processDirectory: (componentsDir: string[], relativeOutDir?: string) => Promise<void>; export declare const handleCreateConfigFile: (configPath: string, config: RNPAConfig) => void; type SaveToFolderBase = { log?: boolean; outDir: string; importAlias?: string; relativeParentFolderPath?: string; progressCallback: (progress: number, currentFileOrFolderName?: string) => void; }; type SaveToFolderWithComponentName = SaveToFolderBase & { componentName: string; absoluteComponentPath?: never; }; type SaveToFolderWithAbsolutePath = SaveToFolderBase & { componentName?: never; absoluteComponentPath: string; }; type SaveToFolderType = SaveToFolderWithComponentName | SaveToFolderWithAbsolutePath; export declare const handleSaveToFolder: ({ outDir, log, importAlias, componentName, progressCallback, absoluteComponentPath, relativeParentFolderPath, }: SaveToFolderType) => Promise<string>; export {}; //# sourceMappingURL=helpers.d.ts.map