/** * Total triples across the default graph and all named graphs. Run on the 30s * metrics-collector cadence via `getTotalTriples` (see the metrics source in * `lifecycle.ts`). It is the heaviest read the collector issues and the one the * store-read-latency benchmark tracks. */ export declare const GET_TOTAL_TRIPLES_SPARQL = "SELECT (COUNT(*) AS ?c) WHERE { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } }"; type MetricSubscriptionCandidate = { onChainId?: string; onChainHash?: string; pendingMeta?: boolean; synced?: boolean; metaSynced?: boolean; sharedMemorySynced?: boolean; coreHosted?: boolean; }; /** * Parse a SPARQL `COUNT` binding into a number. The value arrives as an RDF * integer literal (e.g. `"1000"^^<…#integer>`) or a bare `1000`; missing or * unparseable values yield 0. Shared by the metrics collector and the * store-read benchmark so result parsing can't drift from the query. */ export declare function parseRdfInt(raw: string | undefined): number; export declare function buildContextGraphDeclarationsSparql(graphUris: readonly string[], knownContextGraphIds?: Iterable): string | null; export declare function contextGraphIdsFromDeclarationBindings(bindings: readonly Record[] | undefined): string[]; export declare function contextGraphIdsFromLocalRootMetaGraphs(graphUris: readonly string[], candidateContextGraphIds: Iterable): string[]; export declare function contextGraphIdsFromMetricSubscriptionCandidates(subscriptions: Iterable): string[]; export declare function shadowContextGraphIdsFromMetricSubscriptionCandidates(subscriptions: Iterable): string[]; export declare function contextGraphIdFromGraphUriForMetrics(graphUri: string, knownContextGraphIds?: Iterable): string | null; export declare function countContextGraphsFromGraphUris(graphUris: readonly string[], knownContextGraphIds?: Iterable, excludedContextGraphIds?: Iterable): number; export {}; //# sourceMappingURL=metrics-queries.d.ts.map