import CommitStrategy from './CommitStrategy'; import IObjectMetadata from '../objects/IObjectMetadata'; import ICommit from '../commits/ICommit'; export declare const BASIC_COMMIT_STRATEGY = "basic"; /** * BasicCommitStrategy implements the 'basic' commit strategy */ export default class BasicCommitStrategy extends CommitStrategy { resolveObject(objectId: string, commits: ICommit[]): { /** Resolved object metadata */ metadata: IObjectMetadata; /** Resolved object data */ data: any; }; /** * Gets the correct create commit given the objectId * @param commits All commits to search through */ static findCreateCommit(objectId: string, commits: ICommit[]): ICommit | undefined; /** * Gets the latest logical commit * @param commits All commits to search through */ static findLatestCommit(commits: ICommit[]): ICommit; }