1 | import * as React from 'react';
|
2 | /**
|
3 | * A type of an object that have a route key as an object key
|
4 | * and a value whether to prevent that route.
|
5 | */
|
6 | export type PreventedRoutes = Record<string, {
|
7 | preventRemove: boolean;
|
8 | }>;
|
9 | declare const PreventRemoveContext: React.Context<{
|
10 | preventedRoutes: PreventedRoutes;
|
11 | setPreventRemove: (id: string, routeKey: string, preventRemove: boolean) => void;
|
12 | } | undefined>;
|
13 | export default PreventRemoveContext;
|
14 | //# sourceMappingURL=PreventRemoveContext.d.ts.map |
\ | No newline at end of file |