import { CreatePageDto, ContentFormat } from '../dto/create-page.dto';
import { ContentOperation, UpdatePageDto } from '../dto/update-page.dto';
import { PageRepo } from "../../../database/repos/page/page.repo";
import { PagePermissionRepo } from "../../../database/repos/page/page-permission.repo";
import { Page, User } from "../../../database/types/entity.types";
import { PaginationOptions } from "../../../database/pagination/pagination-options";
import { CursorPaginationResult } from "../../../database/pagination/cursor-pagination";
import { KyselyDB, KyselyTransaction } from "../../../database/types/kysely.types";
import { MovePageDto } from '../dto/move-page.dto';
import { AttachmentRepo } from "../../../database/repos/attachment/attachment.repo";
import { StorageService } from '../../../integrations/storage/storage.service';
import { Queue } from 'bullmq';
import { EventEmitter2 } from '@nestjs/event-emitter';
import { CollaborationGateway } from '../../../collaboration/collaboration.gateway';
import { WatcherService } from '../../watcher/watcher.service';
import { TransclusionService } from '../transclusion/transclusion.service';
import { LabelRepo } from "../../../database/repos/label/label.repo";
import { WsService } from '../../../ws/ws.service';
import { CollabAccessService } from '../../../collaboration/services/collab-access.service';
import { ShareService } from '../../share/share.service';
import { UnsplashService } from '../../../integrations/unsplash/unsplash.service';
import { PageVerificationInvalidationService } from '../verification/page-verification-invalidation.service';
export declare class PageService {
    private pageRepo;
    private pagePermissionRepo;
    private attachmentRepo;
    private readonly db;
    private readonly storageService;
    private attachmentQueue;
    private aiQueue;
    private generalQueue;
    private eventEmitter;
    private collaborationGateway;
    private readonly watcherService;
    private readonly transclusionService;
    private readonly labelRepo;
    private readonly wsService;
    private readonly collabAccessService;
    private readonly shareService;
    private readonly unsplashService;
    private readonly pageVerificationInvalidationService;
    private readonly logger;
    constructor(pageRepo: PageRepo, pagePermissionRepo: PagePermissionRepo, attachmentRepo: AttachmentRepo, db: KyselyDB, storageService: StorageService, attachmentQueue: Queue, aiQueue: Queue, generalQueue: Queue, eventEmitter: EventEmitter2, collaborationGateway: CollaborationGateway, watcherService: WatcherService, transclusionService: TransclusionService, labelRepo: LabelRepo, wsService: WsService, collabAccessService: CollabAccessService, shareService: ShareService, unsplashService: UnsplashService, pageVerificationInvalidationService: PageVerificationInvalidationService);
    findById(pageId: string, includeContent?: boolean, includeYdoc?: boolean, includeSpace?: boolean): Promise<Page>;
    create(userId: string, workspaceId: string, createPageDto: CreatePageDto, trx?: KyselyTransaction, isBase?: boolean): Promise<Page>;
    nextPagePosition(spaceId: string, parentPageId?: string, trx?: KyselyTransaction): Promise<string>;
    update(page: Page, updatePageDto: UpdatePageDto, user: User): Promise<Page>;
    private resolveCoverFields;
    private resolveCover;
    private validateCoverFile;
    private scheduleCoverCleanup;
    updatePageContent(pageId: string, content: string | object, operation: ContentOperation, format: ContentFormat, user: User): Promise<void>;
    getSidebarPages(spaceId: string, pagination: PaginationOptions, pageId?: string, userId?: string, spaceCanEdit?: boolean): Promise<CursorPaginationResult<Partial<Page> & {
        hasChildren: boolean;
    }>>;
    movePageToSpace(rootPage: Page, spaceId: string, userId: string): Promise<{
        childPageIds: string[];
        deletedShares: Pick<{
            key: string;
            id: string;
            workspaceId: string;
            creatorId: string;
            createdAt: Date;
            updatedAt: Date;
            deletedAt: Date;
            spaceId: string;
            pageId: string;
            includeSubPages: boolean;
            searchIndexing: boolean;
        }, "id" | "spaceId" | "pageId">[];
    }>;
    duplicatePage(rootPage: Page, targetSpaceId: string | undefined, authUser: User): Promise<{
        hasChildren: boolean;
        childPageIds: string[];
        id: string;
        workspaceId: string;
        creatorId: string;
        title: string;
        createdAt: Date;
        updatedAt: Date;
        deletedAt: Date;
        content: import("../../../database/types/db").JsonValue;
        tsv: string;
        spaceId: string;
        contributorIds: string[];
        coverAttribution: import("../../../database/types/db").JsonValue;
        coverPhoto: string;
        coverPosition: number;
        deletedById: string;
        icon: string;
        isBase: boolean;
        baseSchemaVersion: number;
        isLocked: boolean;
        lastUpdatedById: string;
        parentPageId: string;
        position: string;
        slugId: string;
        textContent: string;
        ydoc: Buffer<ArrayBufferLike>;
    }>;
    movePage(dto: MovePageDto, movedPage: Page): Promise<void>;
    getPageBreadCrumbs(childPageId: string): Promise<{
        id: string;
        title: string;
        deletedAt: Date;
        spaceId: string;
        icon: string;
        isBase: boolean;
        parentPageId: string;
        position: string;
        slugId: string;
        hasChildren: import("kysely").SqlBool;
    }[]>;
    getRecentSpacePages(spaceId: string, userId: string, pagination: PaginationOptions): Promise<CursorPaginationResult<Page>>;
    getRecentPages(userId: string, pagination: PaginationOptions): Promise<CursorPaginationResult<Page>>;
    getCreatedByPages(creatorId: string, requestingUserId: string, pagination: PaginationOptions, spaceId?: string): Promise<CursorPaginationResult<Page>>;
    getDeletedSpacePages(spaceId: string, userId: string, pagination: PaginationOptions): Promise<CursorPaginationResult<Page>>;
    forceDelete(pageId: string, workspaceId: string): Promise<void>;
    removePage(pageId: string, userId: string, workspaceId: string): Promise<void>;
    parseProsemirrorContent(content: string | object, format: ContentFormat, context?: 'page' | 'template'): Promise<any>;
    private filterAccessibleTreePages;
}
