// Type definitions for git-repo-name 1.0 // Project: https://github.com/jonschlinkert/git-repo-name // Definitions by: BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = gitRepoName; declare function gitRepoName(options?: string | gitRepoName.Options): Promise; declare function gitRepoName(callback: (err: Error | null, repoName: string) => void): void; declare function gitRepoName( options: string | gitRepoName.Options, callback: (err: Error | null, repoName: string) => void ): void; declare namespace gitRepoName { function promise(options?: string | Options): Promise; function sync(options?: string | Options): string; interface Options { cwd?: string; path?: string; } }