import { PromiseWrapper } from "./PromiseWrapper.mjs"; import { StartUpdate } from "./reader.mjs"; import { ComponentOrFieldName, StoreLink } from "./IsographEnvironment.mjs"; import { ReaderWithRefetchQueries } from "./entrypoint.mjs"; //#region src/core/FragmentReference.d.ts type VariableValue = string | number | boolean | null | { readonly [index: string]: VariableValue; } | VariableValue[]; type Variables = { readonly [index: string]: VariableValue; }; type UnknownTReadFromStore = { parameters: object; data: object; startUpdate?: StartUpdate; }; type ExtractData = T extends { data: infer D extends object; } ? D : never; type ExtractParameters = T extends { parameters: infer P extends Variables; } ? P : Variables; type ExtractStartUpdate = T['startUpdate']; type FragmentReference = { readonly kind: 'FragmentReference'; readonly readerWithRefetchQueries: PromiseWrapper>; readonly root: StoreLink; readonly fieldName: ComponentOrFieldName; readonly readerArtifactKind: 'EagerReaderArtifact' | 'ComponentReaderArtifact'; readonly variables: ExtractParameters; readonly networkRequest: PromiseWrapper; }; type StableIdForFragmentReference = string; declare function stableIdForFragmentReference(fragmentReference: FragmentReference): StableIdForFragmentReference; //#endregion export { ExtractData, ExtractParameters, ExtractStartUpdate, FragmentReference, StableIdForFragmentReference, UnknownTReadFromStore, VariableValue, Variables, stableIdForFragmentReference }; //# sourceMappingURL=FragmentReference.d.mts.map