1 | import { ActionsUnion, IComponentState, IGatsbyState, IQueryState } from "../types";
|
2 | export declare const FLAG_DIRTY_NEW_PAGE = 1;
|
3 | export declare const FLAG_DIRTY_TEXT = 2;
|
4 | export declare const FLAG_DIRTY_DATA = 4;
|
5 | export declare const FLAG_DIRTY_PAGE_CONTEXT = 8;
|
6 | export declare const FLAG_ERROR_EXTRACTION = 1;
|
7 | export declare const FLAG_RUNNING_INFLIGHT = 1;
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export declare function queriesReducer(state: {
|
18 | byNode: Map<string, Set<string>>;
|
19 | byConnection: Map<string, Set<string>>;
|
20 | queryNodes: Map<string, Set<string>>;
|
21 | trackedQueries: Map<string, IQueryState>;
|
22 | trackedComponents: Map<string, IComponentState>;
|
23 | deletedQueries: Set<string>;
|
24 | dirtyQueriesListToEmitViaWebsocket: string[];
|
25 | } | undefined, action: ActionsUnion): IGatsbyState["queries"];
|
26 | export declare function hasFlag(allFlags: number, flag: number): boolean;
|