leshi-ui
Version:
Modern CLI for building and managing React Native UI components with copy-paste simplicity, custom theming, and open source design system support
27 lines (26 loc) • 1.07 kB
TypeScript
import { Framework, ComponentRegistry } from '../types/index.js';
export interface GitHubFile {
name: string;
content: string;
path: string;
}
export declare class GitHubService {
private static readonly REPO_OWNER;
private static readonly REPO_NAME;
private static readonly BASE_URL;
private static registryCache;
private static gitHubRef;
private static getGitHubRef;
private static getRawBaseUrl;
static getRegistry(): Promise<ComponentRegistry>;
static downloadComponent(framework: Framework, componentName: string): Promise<string>;
static downloadUtility(framework: Framework, utilityPath: string): Promise<string>;
static downloadTheme(framework: Framework, themeName: string): Promise<string>;
static downloadStyleFiles(framework: Framework): Promise<{
[]: string;
}>;
static getAvailableThemes(framework: Framework): Promise<string[]>;
static isRepositoryAccessible(): Promise<boolean>;
static clearCache(): void;
static getCurrentRef(): Promise<string>;
}