/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import FlowModelRepository from '../repository'; export declare class FlowSurfaceRouteSync { private readonly db; private readonly repository; private readonly patchModel; constructor(db: any, repository: FlowModelRepository, patchModel?: (values: Record, options?: { transaction?: any; }) => Promise); buildPageTree(pageRouteLike: any, transaction?: any): Promise; buildTabAnchor(tabRouteLike: any, transaction?: any): Promise<{ subModels?: { grid: Record; }; uid: string; use: string; props: { route: Record; title: string; icon: string; }; decoratorProps: Record; flowRegistry: Record; stepParams: { pageTabSettings: any; }; }>; removeRouteAnchorChildren(schemaUid: string, transaction?: any): Promise; removeTabAnchorTree(schemaUid: string, transaction?: any): Promise; persistPageSettings(target: any, current: any, nextPayload: Record, transaction?: any): Promise; persistTabSettings(target: any, current: any, nextPayload: Record, transaction?: any): Promise; findPersistedTabAnchor(schemaUid: string, transaction?: any): Promise; hydrateRoute(routeLike: any, transaction?: any): Promise; private readPageRouteBackedState; private buildPageRoutePatch; private normalizePagePayload; private buildTabRoutePatch; normalizeTabPayload(current: any, nextPayload: Record, routePatch: Record): { props: any; stepParams: any; flowRegistry: any; }; }