import { type GitHubTransport } from './client.ts'; export interface RepoRef { owner: string; repo: string; } /** * gh's `[HOST/]OWNER/REPO`: the host is optional and leading, so the owner and * the repository are always the last two segments. Taking the first two * instead read `github.com/acme/tools` as owner `github.com`, repo `acme` -- * a different repository, reported as success. * * Args: * spec (string): the repository as the line spelled it. * * Returns: * RepoRef: the owner and repository names. */ export declare function parseRepo(spec: string): RepoRef; export declare function login(transport: GitHubTransport): Promise; export declare function viewRepo(transport: GitHubTransport, ref: RepoRef): Promise; /** * The repository's README as text, or null when it has none. */ export declare function readReadme(transport: GitHubTransport, ref: RepoRef): Promise; export declare function forkRepo(transport: GitHubTransport, ref: RepoRef, name?: string): Promise; export declare function renameRepo(transport: GitHubTransport, ref: RepoRef, name: string): Promise; export declare function listRepos(transport: GitHubTransport, owner: string | undefined, limit: number): Promise[]>; export declare function createRepo(transport: GitHubTransport, owner: string | undefined, body: Record): Promise; //# sourceMappingURL=repo.d.ts.map