import type { Loose } from '@daysnap/types'; type RouteOptions = string | Loose<{ url: string; query?: Record; replace?: boolean; }>; export declare const RouterBehavior: import("../create").CreateBehavior<{ query: Record; }, import("../create").OptionBehavior, { /** * 获取页面 url 参数 * * let { query = {}, scene, ...rest } = options * 包含了 query 和 scene 参数,优先级 rest > scene > query */ routerParseQuery>(options: Record): T; /** * 页面跳转 * * replace 为 true 时,调用 wx.redirectTo 跳转页面, * 否则调用 wx.navigateTo,默认为 false */ routerPush(options: RouteOptions): void; /** * 跳转第一个页面 * * replace 为 true 时,调用 wx.reLaunch 跳转页面, * 否则调用 wx.switchTab,默认为 false */ routerRoot(options: RouteOptions): void; /** * 路由返回 */ routerPop(delta?: number): void; }, {}>; export {};