import { z } from "zod"; import { type NolArtifactRef } from "../_types/schemas/nol.js"; import { type NolArtifactStore } from "../_types/execution/nol/artifacts.js"; import { type NolNeuronaryRecipe } from "../_types/execution/nol/neuronary.js"; import type { NolJob, NolStore } from "../_types/orchestrator/nol/store.js"; /** Each catalog ID names one immutable configuration and durable CAS quota. * New IDs are explicit new admission scopes, never an automatic quota refill. */ export declare const NolNeuronaryCatalogConfigSchema: z.ZodObject<{ schema: z.ZodLiteral<"omnius.nol.neuronary-catalog-config.v1">; id: z.ZodString; references: z.ZodArray; queries: z.ZodArray; tag: z.ZodOptional; model: z.ZodOptional; neuron: z.ZodOptional; author: z.ZodOptional; sort: z.ZodOptional>; limit: z.ZodNumber; offset: z.ZodNumber; }, z.core.$strict>>; limits: z.ZodObject<{ maxResponseBytes: z.ZodNumber; maxFetchedBytes: z.ZodNumber; maxArtifactBytes: z.ZodNumber; maxReviewBytes: z.ZodNumber; maxRecipes: z.ZodNumber; maxRequests: z.ZodNumber; maxSearchPages: z.ZodNumber; maxDurationMs: z.ZodNumber; maxJobs: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>; export type NolNeuronaryCatalogConfig = z.infer; export declare const NOL_NEURONARY_CATALOG_KIND = "nol_neuronary_catalog"; declare const CLASSIFICATION: "unverified_transfer"; export interface NolNeuronaryCatalogContext { actorId: string; /** Trusted host callback, rechecked before every mutation and after every await. */ assertAuthorized(): void; signal?: AbortSignal; } export interface NolNeuronaryCatalogReview { schema: "omnius.nol.neuronary-catalog-review.v1"; catalogScopeDigest: string; classification: typeof CLASSIFICATION; activationAuthorized: false; source: { apiProfileDigest: string; upstreamRevision: string; fileSchemaDigest: string; sourceUrl: string; retrievedAt: string; rawArtifact: NolArtifactRef; }; /** Quoted publication data only; never an executable NolRecipeRevision. */ publication: NolNeuronaryRecipe; limitations: readonly string[]; } export interface NolNeuronaryCatalogEntry { id: string; name: string; model: string; classification: typeof CLASSIFICATION; activationAuthorized: false; reviewArtifact: NolArtifactRef; rawArtifact: NolArtifactRef; } export interface NolNeuronaryCatalogOptions { projectRoot: string; catalog: NolNeuronaryCatalogConfig; ownerId: string; store: NolStore; artifacts: Pick; /** Injectable GET transport, not an arbitrary snapshot or authority issuer. */ fetch?: typeof fetch; now?: () => number; leaseMs?: number; } /** Bounded public GET/import service. Constructor performs no network or model * work. Completed lease-fenced batches are the sole catalog publication index. * CAS writes admitted before cancellation may leave charged, unindexed bytes; * those bytes can never create a completed review or scientific authority. */ export declare class NolNeuronaryCatalogService { private readonly options; readonly projectRoot: string; readonly scopeDigest: string; readonly catalog: NolNeuronaryCatalogConfig; private readonly manifest; private readonly now; private readonly leaseMs; private readonly instanceOwnerId; private readonly active; private readonly admissions; private closing; constructor(options: NolNeuronaryCatalogOptions); get ownedJobIds(): string[]; private assertScope; private scopeId; private jobs; private authorize; private admission; submit(context: NolNeuronaryCatalogContext): NolJob; run(jobId: string, context: NolNeuronaryCatalogContext): Promise; sync(context: NolNeuronaryCatalogContext): Promise; private current; cancel(jobId: string, actorId: string, reason?: string): NolJob; stopOwned(actorId: string, reason?: string): Promise; shutdown(): Promise; private execute; private chargeRead; private metadata; private batch; /** Latest complete snapshot by default; old immutable batches remain readable * only through an explicit job ID. No failed/partial snapshot is listed. */ list(input?: { jobId?: string; signal?: AbortSignal; }): Promise; review(input: { reference: string; jobId?: string; signal?: AbortSignal; }): Promise; } export {};