import type { CoderClient, CoderSessionRepositoryRef } from '@agentuity/coder';
/**
 * Parse a GitHub reference string into owner/repo/branch.
 * Accepts:
 *   - github.com/owner/repo
 *   - https://github.com/owner/repo
 *   - https://github.com/owner/repo.git
 *   - owner/repo
 *   - owner/repo#branch
 *   - https://github.com/owner/repo/tree/branch
 */
export declare function parseGitHubRef(input: string): {
    owner: string;
    repo: string;
    branch?: string;
} | null;
/**
 * Resolve a GitHub reference to a full repository ref by calling the Hub's GitHub APIs.
 *
 * Flow:
 * 1. Parse the input to get owner/repo
 * 2. List GitHub accounts → find the one matching the owner
 * 3. List repos for that account → find the matching repo
 * 4. Build full CoderSessionRepositoryRef with all metadata
 */
export declare function resolveGitHubRepo(client: CoderClient, input: string, branchOverride?: string): Promise<CoderSessionRepositoryRef>;
//# sourceMappingURL=resolve-repo.d.ts.map