1 | import type { NavigationState } from '@react-navigation/core';
|
2 | declare type HistoryRecord = {
|
3 | id: string;
|
4 | state: NavigationState;
|
5 | path: string;
|
6 | };
|
7 | export default function createMemoryHistory(): {
|
8 | readonly index: number;
|
9 | get(index: number): HistoryRecord;
|
10 | backIndex({ path }: {
|
11 | path: string;
|
12 | }): number;
|
13 | push({ path, state }: {
|
14 | path: string;
|
15 | state: NavigationState;
|
16 | }): void;
|
17 | replace({ path, state }: {
|
18 | path: string;
|
19 | state: NavigationState;
|
20 | }): void;
|
21 | go(n: number): Promise<void> | undefined;
|
22 | listen(listener: () => void): () => void;
|
23 | };
|
24 | export {};
|