///
import { IGitExecutionOptions } from '../core/git';
/**
* Retrieve the text (UTF-8) contents of a file from the repository at a given
* reference, commit, or tree.
*
* Returns a promise that will produce a Buffer instance containing
* the text (UTF-8) contents of the resource or an error if the file doesn't
* exists in the given revision.
*
* @param repositoryPath - The repository from where to read the file. Or the FS path to the repository.
* @param commitish - A commit SHA or some other identifier that ultimately dereferences to a commit/tree. `HEAD` is the `HEAD`. If empty string, shows the index state.
* @param path - The absolute FS path which is contained in the repository.
*/
export declare function getTextContents(repositoryPath: string, commitish: string, path: string, options?: IGitExecutionOptions): Promise;
/**
* Retrieve the binary contents of a blob from the repository at a given
* reference, commit, or tree.
*
* Returns a promise that will produce a Buffer instance containing
* the binary contents of the blob or an error if the file doesn't
* exists in the given revision.
*
* @param repositoryPath - The repository from where to read the blob. Or the FS path to the repository.
* @param commitish - A commit SHA or some other identifier that ultimately dereferences to a commit/tree. `HEAD` is the `HEAD`. If empty string, shows the index state.
* @param path - The absolute FS path which is contained in the repository.
*/
export declare function getBlobContents(repositoryPath: string, commitish: string, path: string, options?: IGitExecutionOptions): Promise;