/** * Helper utilities for GitHub App Manifest flow */ /** * Parse code parameter from GitHub redirect URL or direct code input * * @param input - Either a full GitHub URL or just the code * @returns The extracted code, or null if invalid */ export declare function parseCodeFromUrl(input: string): string | null; /** * Validate manifest code format * * GitHub manifest codes are typically long alphanumeric strings * with underscores and hyphens, at least 20 characters long. * * @param code - The code to validate * @returns true if code appears valid */ export declare function validateManifestCode(code: string): boolean; /** * Detect GitHub context from git remote * * Parses the git remote URL to extract organization and repository names. * Supports both HTTPS and SSH URL formats. * * @returns Object with org and repo, or null if not detectable */ export declare function detectGitHubContext(): { org: string; repo: string; } | null; /** * Validate if current directory is a git repository * * @returns true if current directory is a git repository */ export declare function isGitRepository(): boolean; //# sourceMappingURL=github-manifest.d.ts.map