export declare enum GitHubRefType { BRANCH = "branch", TAG = "tag" } export declare function parseGitHubUrl(githubUrl: string): { owner: string; repo: string; }; export declare function createDownloadableGitHubUrl(githubUrl: string, ref?: string, refType?: GitHubRefType): string; export interface GitHubFileOptions { githubUrl: string; path: string; ref?: string; } export declare function getVersionUrl(options: GitHubFileOptions): string; /** * Creates GitHub OTA configuration URLs * * Note: The native implementations automatically check for both ota.version.json and ota.version files. * If you're using ota.version.json for version checking via URL, pass 'ota.version.json' as otaVersionPath. * * @param githubUrl - The GitHub repository URL * @param otaVersionPath - Path to the version file (defaults to 'ota.version', but 'ota.version.json' is also supported) * @param ref - The branch, tag, or commit SHA (defaults to 'main') */ export declare function githubOTA({ githubUrl, otaVersionPath, ref, }: { githubUrl: string; otaVersionPath?: string; ref?: string; }): { downloadUrl: string; versionUrl: string; }; //# sourceMappingURL=githubUtils.d.ts.map