/**
 * GitHub CLI Submit Utility
 *
 * Automates skill submission to the Crewly marketplace via GitHub CLI (gh).
 * Handles forking, branching, copying files, and creating PRs without
 * requiring users to clone the entire repository.
 *
 * @module cli/utils/gh-submit
 */
import type { SkillManifest } from './package-validator.js';
/** Result of a successful GitHub submission */
export interface GhSubmitResult {
    /** URL of the created pull request */
    prUrl: string;
    /** Branch name used for the submission */
    branch: string;
    /** GitHub username of the submitter */
    username: string;
}
/**
 * Check that gh CLI is installed and authenticated.
 * Throws descriptive errors if prerequisites are not met.
 */
export declare function checkGhPrerequisites(): void;
/**
 * Get the authenticated GitHub username.
 *
 * @returns GitHub username
 */
export declare function getGhUsername(): string;
/**
 * Submit a skill to the Crewly marketplace by creating a PR via gh CLI.
 *
 * Flow:
 * 1. Verify gh CLI is installed and authenticated
 * 2. Fork the upstream repo (idempotent — no-op if already forked)
 * 3. Clone the fork to a temp directory (shallow, single-branch)
 * 4. Create a branch, copy skill files, commit, push
 * 5. Create a PR against the upstream repo
 *
 * @param skillPath - Absolute path to the local skill directory
 * @param manifest - Parsed skill.json manifest
 * @returns Result with PR URL, branch name, and username
 */
export declare function submitToGitHub(skillPath: string, manifest: SkillManifest): Promise<GhSubmitResult>;
//# sourceMappingURL=gh-submit.d.ts.map