import { buildKnowledgeRouteContext } from './router-route-contexts.js'; type KnowledgeContextInput = Parameters[0]; /** * The slice of the router's context this needs. * * Structural rather than the router's own context type, which is not exported, * and narrower is better here anyway: this function has no business reaching * anything else on it. */ export interface KnowledgeRouterContext { readonly artifactStore: KnowledgeContextInput['artifactStore']; readonly configManager: KnowledgeContextInput['configManager']; readonly requireAdmin: KnowledgeContextInput['requireAdmin']; extractAuthToken(request: Request): string | null; describeAuthenticatedPrincipal(token: string): ReturnType; } /** The router's own JSON body helpers, which are instance methods. */ export interface RouterBodyParsers { readonly parseJsonBody: KnowledgeContextInput['parseJsonBody']; readonly parseOptionalJsonBody: KnowledgeContextInput['parseOptionalJsonBody']; readonly parseJsonText: KnowledgeContextInput['parseJsonText']; } /** Build the context for one knowledge surface. */ export declare function buildRouterKnowledgeContext(context: KnowledgeRouterContext, parsers: RouterBodyParsers, knowledgeService: KnowledgeContextInput['knowledgeService'], knowledgeGraphqlService: KnowledgeContextInput['knowledgeGraphqlService']): ReturnType; export {}; //# sourceMappingURL=router-knowledge-context.d.ts.map