/** * Every lowercased owner of a checkout's GitHub repositories, read the way gh reads them: the fetch * URLs of `git remote -v` plus any `gh repo set-default` (`remote..gh-resolved`). Hostless * (local-path) remotes are ignored, like gh does; undefined when the checkout can't be read, prints * a remote line the hook doesn't recognize, or has a hosted remote or set-default that isn't * OWNER/REPO. */ export declare function checkoutOwners(cwd: string): ReadonlySet | undefined; /** * A checkout's owner when {@link checkoutOwners} finds exactly one, so whichever remote gh picks is * that owner's; undefined when there are none or several. */ export declare function checkoutOwner(cwd: string): string | undefined; /** * The owners a session's own checkout belongs to: its {@link checkoutOwners} plus the owner of its * root `package.json` `repository`, so a fork-only checkout still counts the upstream it declares. * Undefined — keep every content rule — when either is unreadable, the declared repository isn't * a hosted OWNER/REPO, or no owner is known at all. */ export declare function sessionHomeOwners(worktreeRoot: string): ReadonlySet | undefined; export declare function ownerOfRepoSelector(value: string): string | undefined; export declare function githubOwner(value: string): string | undefined;