export = WOQLLibrary; /** * @license Apache Version 2 * @module WOQLLibrary * @constructor WOQLLibrary * @description Library Functions to manage the commits graph * @example * const woqlLib = WOQLLibrary() * woqlLib.branches() * * //or you can call this functions using WOQL Class * WOQL.lib().branches() * */ declare class WOQLLibrary { default_schema_resource: string; default_commit_resource: string; default_meta_resource: string; masterdb_resource: string; empty: string; /** * General Pattern 4: Retrieves Branches, Their ID, Head Commit ID, Head Commit Time * (if present, new branches have no commits) */ branches(): import("./woqlQuery"); /** * get all the commits of a specific branch * if a timestamp is given, gets all the commits before the specified timestamp * @param {string} [branch] - the branch name * @param {number} [limit] - the max number of result * @param {number} [start] - the start of the pagination * @param {number} [timestamp] - Unix timestamp in seconds */ commits(branch?: string, limit?: number, start?: number, timestamp?: number): import("./woqlQuery"); /** *get commits older than the specified commit id * @param {string} [commit_id] - the commit id * @param {number} [limit] - the max number of result */ previousCommits(commit_id?: string, limit?: number): import("./woqlQuery"); /** * Finds the id of the very first commit in a database's history * * This is useful for finding information about when, by who and why the database was created * The first commit is the only commit in the database that does not have a parent commit * */ first_commit(): import("./woqlQuery"); }