import { Ref } from './common'; import { HasObjectId } from './has-object-id'; import { IPage } from './page'; import { IUser } from './user'; export declare const Origin: { readonly View: "view"; readonly Editor: "editor"; }; export type Origin = (typeof Origin)[keyof typeof Origin]; export declare const allOrigin: ("view" | "editor")[]; export type IRevision = { pageId: Ref; body: string; author: Ref; format: string; hasDiffToPrev?: boolean; origin?: Origin; createdAt: Date; updatedAt: Date; }; export type IRevisionHasId = IRevision & HasObjectId; export type IRevisionsForPagination = { revisions: IRevisionHasId[]; totalCounts: number; }; export type HasRevisionShortbody = { revisionShortBody?: string; }; export type SWRInfinitePageRevisionsResponse = { revisions: IRevisionHasId[]; totalCount: number; offset: number; };