import type { IfEquals } from "hry-types/src/Any/IfEquals"; import type { IfExtends } from "hry-types/src/Any/IfExtends"; import type { NoInfer } from "hry-types/src/Generic/NoInfer"; import type { ComputeObject } from "../types/ComputeObject"; import type { WMNavigateToOption } from "../types/OfficialTypeAlias"; import type { RequiredKeys } from "../types/RequiredKeys"; import type { PageDoc } from "./DefineComponent/returnType/PageDoc"; type NavigateToOption = ComputeObject<{ url: T["path"]; } & IfExtends>, never, { data?: T["properties"]; }, { data: T["properties"]; }>> & Omit>; export declare function navigateTo(option: NoInfer> & { data?: object; }, onBack?: (res: unknown) => void): Promise; type WMNavigateBackOption = WechatMiniprogram.NavigateBackOption; type NavigateBackOption = WMNavigateBackOption & { data?: Data; }; export declare function navigateBack = NavigateBackOption>(options?: T): WechatMiniprogram.PromisifySuccessResult; export declare function redirectTo(option: NoInfer> & { data?: object; }): Promise; export {};