import type { Instance, SnapshotIn } from 'mobx-state-tree'; import type { AppRouter, NavigationObject, SchemaCollection } from '../types'; export declare const AppStore: import("mobx-state-tree").IModelType<{ id: import("mobx-state-tree").ISimpleType; path: import("mobx-state-tree").IType; storeType: import("mobx-state-tree").ISimpleType; disposed: import("mobx-state-tree").IType; parentId: import("mobx-state-tree").IType; childrenIds: import("mobx-state-tree").IOptionalIType>, [undefined]>; } & { hasRemoteData: import("mobx-state-tree").IOptionalIType, [undefined]>; data: import("mobx-state-tree").IOptionalIType, [undefined]>; initedAt: import("mobx-state-tree").IType; updatedAt: import("mobx-state-tree").IType; pristine: import("mobx-state-tree").IOptionalIType, [undefined]>; action: import("mobx-state-tree" /** 更新前的 location */).IOptionalIType, [undefined]>; dialogOpen: import("mobx-state-tree").IType; dialogData: import("mobx-state-tree").IOptionalIType, [undefined]>; drawerOpen: import("mobx-state-tree").IType; drawerData: import("mobx-state-tree").IOptionalIType, [undefined]>; rendererProxy: import("mobx-state-tree").IOptionalIType, [undefined]>; } & { msg: import("mobx-state-tree").IType; error: import("mobx-state-tree").IType; fetching: import("mobx-state-tree").IType; saving: import("mobx-state-tree").IType; busying: import("mobx-state-tree").IType; checking: import("mobx-state-tree").IType; initializing: import("mobx-state-tree").IType; schema: import("mobx-state-tree").IOptionalIType, [undefined]>; schemaKey: import("mobx-state-tree").IType; } & { location: import("mobx-state-tree").IType; prevLocation: import("mobx-state-tree").IType; query: import("mobx-state-tree").IType | null | undefined, Record, Record>; pages: import("mobx-state-tree").IType; activePage: import("mobx-state-tree").IType; activePaths: import("mobx-state-tree").IType; activeParams: import("mobx-state-tree").IType, Record, Record>; folded: import("mobx-state-tree").IType; offScreen: import("mobx-state-tree").IType; }, { readonly parentStore: any; readonly __: any; readonly hasChildren: boolean; readonly children: any[]; readonly isAlive: boolean; } & { onChildStoreDispose(child: any): void; syncProps(props: any, prevProps: any, list?: Array): void; syncProp(key: string, propValue: any, prevPropValue: any): void; dispose: (callback?: () => void) => void; addChildId: (id: string) => void; removeChildId: (id: string) => void; } & { getValueByName(name: string, canAccessSuper?: boolean): any; getPristineValueByName(name: string): any; } & { initData(data?: Record, skipSetPristine?: boolean): void; reset(): void; updateData(data?: object, tag?: object, replace?: boolean): void; changeValue(name: string, value: any, changePristine?: boolean, force?: boolean, otherModifier?: (data: Object) => void): void; setCurrentAction(action: object): void; openDialog(ctx?: any, additonal?: object, callback?: (ret: any) => void): void; closeDialog(result?: any): void; openDrawer(ctx: any, additonal?: object, callback?: (ret: any) => void): void; closeDrawer(result?: any): void; updateRendererProxy(proxy: import("jamis-core").RendererProxy): void; } & { readonly loading: boolean; } & { markFetching: (fetching?: boolean) => void; markSaving: (saving?: boolean) => void; markBusying: (busying?: boolean) => void; markInitializing: (initializing?: boolean) => void; fetchInitData: (api: import("jamis-core").Api, data?: object, options?: import("jamis-core").fetchOptions) => Promise; fetchData: (api: import("jamis-core").Api, data?: object, options?: import("jamis-core").fetchOptions) => Promise; reInitData: (data: object | undefined, replace?: boolean) => void; updateMessage: (msg?: string, error?: boolean) => void; clearMessage: () => void; setHasRemoteData: () => void; saveRemote: (api: import("jamis-core").Api, data?: object, options?: import("jamis-core").fetchOptions) => Promise; fetchSchema: (api: import("jamis-core").Api, data?: object, options?: import("jamis-core").fetchOptions & { syncInitializing?: boolean; syncSchema?: boolean; }) => Promise<{ shema?: import("jamis-core").Schema; schemaData?: Record; }>; checkRemote: (api: import("jamis-core").Api, data?: object, options?: import("jamis-core").fetchOptions) => Promise; runSchemaProvider: (schemaProvider: () => Promise, replaceData: boolean) => Promise; updateSchema: (schema: any, key: string) => void; } & { readonly navigations: NavigationObject[]; /** * 获取所有路由通用的qs信息 */ filterQueryString(qs?: URLSearchParams): URLSearchParams | null; getBCN({ showFullBreadcrumbPath, showBreadcrumbHomePath }: { showFullBreadcrumbPath?: boolean; showBreadcrumbHomePath?: boolean; }): AppRouter[]; /** * 查找到指定routerId的页面以及参数情况 */ findPageAndParams(routerId: string): { page: AppRouter; matched: boolean | { params?: object; }; params: object | undefined; } | null; } & { updateLocation: (location?: any, parseFn?: Function) => void; setPages: (pages: AppRouter[]) => void; updatePageUrlQuerys: (qs: URLSearchParams) => void; rewrite: (to: string) => void; updateActivePage: () => void; setActivePage: (page: AppRouter, params?: Record) => void; parseAppRouter: (page: AppRouter, params?: Record) => Promise<{ schema?: SchemaCollection; schemaData?: Record; }>; toggleFolded(): void; toggleOffScreen(forceFlag?: boolean): void; /** * 更新设置环境信息 */ refreshEnvData(): void; /** * 更新app 数据域中的 qs 或者 hash * 用于路由地址没有改变, 只更新 qs 和 hash 的场景, 例如 tabs 组件 */ updateQueryStringAndHash(qs: URLSearchParams, hash?: string, prevQs?: URLSearchParams): void; }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>; export type IAppStore = Instance; export type SAppStore = SnapshotIn;