import { IsographEnvironment, StoreLink } from "./IsographEnvironment.mjs"; import { Variables } from "./FragmentReference.mjs"; import { NormalizationAstNodes } from "./entrypoint.mjs"; //#region src/core/check.d.ts type ShouldFetch = RequiredShouldFetch | 'IfNecessary'; type RequiredShouldFetch = 'Yes' | 'No'; type FetchOptionsShared = { onComplete?: (data: TReadOutData) => void; onError?: () => void; }; interface FetchOptions extends FetchOptionsShared { shouldFetch?: ShouldFetch; optimisticNetworkResponse?: TRawResponseType; } interface RequiredFetchOptions extends FetchOptionsShared { shouldFetch: RequiredShouldFetch; } type CheckResult = { kind: 'EnoughData'; } | { kind: 'MissingData'; record: StoreLink; }; declare function check(environment: IsographEnvironment, normalizationAst: NormalizationAstNodes, variables: Variables, root: StoreLink): CheckResult; //#endregion export { CheckResult, FetchOptions, RequiredFetchOptions, RequiredShouldFetch, ShouldFetch, check }; //# sourceMappingURL=check.d.mts.map