1 | import type { DocumentNode, SelectionSetNode } from "graphql";
|
2 | import type { NormalizedCache, InMemoryCacheConfig } from "./types.js";
|
3 | import type { KeyFieldsContext } from "./policies.js";
|
4 | import type { FragmentRegistryAPI } from "./fragmentRegistry.js";
|
5 | import type { Reference, StoreValue, StoreObject, FragmentMap, FragmentMapFunction } from "../../utilities/index.js";
|
6 | import { DeepMerger, isArray } from "../../utilities/index.js";
|
7 | export declare const hasOwn: (v: PropertyKey) => boolean;
|
8 | export declare function isNullish(value: any): value is null | undefined;
|
9 | export { isArray };
|
10 | export declare function defaultDataIdFromObject({ __typename, id, _id }: Readonly<StoreObject>, context?: KeyFieldsContext): string | undefined;
|
11 | export declare function normalizeConfig(config: InMemoryCacheConfig): {
|
12 | dataIdFromObject: typeof defaultDataIdFromObject;
|
13 | addTypename: boolean;
|
14 | resultCaching: boolean;
|
15 | canonizeResults: boolean;
|
16 | } & InMemoryCacheConfig;
|
17 | export declare function shouldCanonizeResults(config: Pick<InMemoryCacheConfig, "canonizeResults">): boolean;
|
18 | export declare function getTypenameFromStoreObject(store: NormalizedCache, objectOrReference: StoreObject | Reference): string | undefined;
|
19 | export declare const TypeOrFieldNameRegExp: RegExp;
|
20 | export declare function fieldNameFromStoreName(storeFieldName: string): string;
|
21 | export declare function selectionSetMatchesResult(selectionSet: SelectionSetNode, result: Record<string, any>, variables?: Record<string, any>): boolean;
|
22 | export declare function storeValueIsStoreObject(value: StoreValue): value is StoreObject;
|
23 | export declare function makeProcessedFieldsMerger(): DeepMerger<any[]>;
|
24 | export declare function extractFragmentContext(document: DocumentNode, fragments?: FragmentRegistryAPI): {
|
25 | fragmentMap: FragmentMap;
|
26 | lookupFragment: FragmentMapFunction;
|
27 | };
|
28 |
|
\ | No newline at end of file |