import Utils from './util/index'; import WebStorage from './storage/index'; import Loading from "./util/loading"; import { BaseComputed, BaseData, BaseMethod } from "./wrap/base/interface"; import { ListData, ListMethod } from "./wrap/list/list/interface"; import { PageListData, PageListMethod } from "./wrap/list/page/interface"; import { H5PageListData, H5PageListMethod, IH5PageListComputed } from "./wrap/list/h5page/interface"; import { FormComputed, FormData, FormMethod } from "./wrap/form/interface"; import JBootOptions, { InstanceResult } from "./options"; import Vue, { ComponentOptions, WatchOptions } from "vue"; import Encrypt from './util/encrypt'; import { DialogListData, DialogListMethod } from "./wrap/list/dialog/list"; import { DialogPageData, DialogPageMethod } from "./wrap/list/dialog/page"; import { DialogH5Computed, DialogH5PageData, DialogH5PageMethod } from "./wrap/list/dialog/h5Page"; export { Utils, Loading, InstanceResult, WebStorage, Encrypt }; export * from './base'; declare type JDefaultData = object | ((this: V) => D); declare type JDefaultProps = Record; declare type JDefaultMethods = Record any>; declare type JWatchHandler = (this: V, val: T, oldVal: T) => void; declare type JComputedOptions = (this: V) => T; declare type JComputedOptionsWithOpt = { get?(this: V): T; set?(this: V, value: T): void; cache?: boolean; }; interface JWatchOptionsWithHandler extends WatchOptions { handler: JWatchHandler; } interface JBaseOptions extends Omit, JDefaultProps>, 'computed'> { data?: JDefaultData; computed?: Record | JComputedOptions> & Partial; methods?: JDefaultMethods & Partial; watch?: Record | JWatchHandler | string>; beforeCreate?(this: V): void; created?(this: V): void; beforeDestroy?(this: V): void; destroyed?(this: V): void; beforeMount?(this: V): void; mounted?(this: V): void; beforeUpdate?(this: V): void; updated?(this: V): void; activated?(this: V): void; deactivated?(this: V): void; } declare type JOptions = JBaseOptions; export default class JBoot { constructor(func: (options: JBootOptions) => void); private static handleOptions; static base(options: JOptions, BaseComputed>): any; static list(options: JOptions, BaseComputed>): any; static page(options: JOptions, BaseComputed>): any; static h5page(options: JOptions, IH5PageListComputed>): any; static form(options: JOptions, FormComputed>): any; static dialogList(options: JOptions, FormComputed>): any; static dialogPage(options: JOptions, FormComputed>): any; static dialogH5Page(options: JOptions, DialogH5Computed>): any; }