/** * Represents a git remote with parsed organization and project information */ export interface GitRemote { name: string; url: string; organization?: string; project?: string; } /** * Parse a git remote URL to extract organization and project name * * Supports: * - SSH format: git@github.com:org/project.git * - HTTPS format: https://github.com/org/project.git * - GitLab subgroups: git@gitlab.com:org/subgroup/project.git * * @param remoteUrl - The git remote URL to parse * @returns Parsed remote information or null if parsing fails */ export declare function parseGitRemote(remoteUrl: string): GitRemote | null; /** * Extract organization name from a git remote URL * * @param remoteUrl - The git remote URL to parse * @returns Organization name or 'local' if extraction fails */ export declare function extractOrganization(remoteUrl: string): string; /** * Extract project name from a git remote URL * * @param remoteUrl - The git remote URL to parse * @returns Project name or null if extraction fails */ export declare function extractProjectName(remoteUrl: string): string | null; /** * Get git remote information for a repository * * Fetches the URL of the 'origin' remote and parses it to extract * organization and project information. * * @param cwd - The working directory of the git repository * @returns Parsed remote information or null if remote doesn't exist or parsing fails */ export declare function getRemoteInfo(cwd: string): Promise; //# sourceMappingURL=organization.d.ts.map