export type RepoCoord = { owner: string; repo: string; }; /** Owner/repo from a git remote URL, for both the HTTPS and SSH forms. * Allows dots in repo names; strips an optional `.git` suffix and an * optional trailing slash. */ export declare function parseRemoteUrl(url: string): RepoCoord | undefined; /** Strip embedded credentials (https://user:token@host/...) from a URL * before it can reach an error message. A value the URL parser refuses * still has its userinfo cut out textually, so a malformed remote can * never leak a token either. */ export declare function redactUrl(url: string): string; /** * The owner/repo pair a GitHub call operates on. An explicit pair wins with * no subprocess; empty defaults resolve from the `origin` remote of `cwd`. * The git runner refuses an empty or relative cwd rather than falling back * to process.cwd(), so a lost directory can never silently target another * repository. Callers resolve BEFORE raising their interrupt, so the payload * and the @always(owner, repo) scope name the real repository. */ export declare function _ghResolveRepo(owner: string, repo: string, cwd: string): Promise;