25 lines
1.3 KiB
TypeScript
25 lines
1.3 KiB
TypeScript
import { Feature } from '../types/Feature';
|
|
import { OakNavigateToParameters } from '../types/Page';
|
|
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/base-app-domain';
|
|
import { EntityDict } from 'oak-domain/lib/types';
|
|
export declare class Navigator extends Feature {
|
|
private namespace;
|
|
setNamespace(namespace: string): void;
|
|
getLocation(): void;
|
|
getNamespace(): void;
|
|
navigateTo<ED extends EntityDict & BaseEntityDict, T2 extends keyof ED>(options: {
|
|
url: string;
|
|
} & OakNavigateToParameters<ED, T2>, state?: Record<string, any>, disableNamespace?: boolean): Promise<void>;
|
|
redirectTo<ED extends EntityDict & BaseEntityDict, T2 extends keyof ED>(options: {
|
|
url: string;
|
|
} & OakNavigateToParameters<ED, T2>, state?: Record<string, any>, disableNamespace?: boolean): Promise<void>;
|
|
switchTab<ED extends EntityDict & BaseEntityDict, T2 extends keyof ED>(options: {
|
|
url: string;
|
|
} & OakNavigateToParameters<ED, T2>, state?: Record<string, any>, disableNamespace?: boolean): Promise<void>;
|
|
navigateBack(delta?: number): Promise<void>;
|
|
navigateBackOrRedirectTo<ED extends EntityDict & BaseEntityDict, T2 extends keyof ED>(options: {
|
|
url: string;
|
|
isTabBar?: boolean;
|
|
} & OakNavigateToParameters<ED, T2>, state?: Record<string, any>, disableNamespace?: boolean): void;
|
|
}
|