import type { ApiPrincipal, SkillsProductStore } from "./types.js"; export declare function hashApiKey(token: string): string; export declare function bearerToken(request: Request): string | null; export declare function authenticateRequest(store: SkillsProductStore, request: Request): Promise; export declare function publicPrincipal(partial?: Partial): ApiPrincipal; /** Scope checks apply to the key, independently of its user's workspace role. */ export declare function permitsSkillsRoute(principal: ApiPrincipal, method: string, resource: string): boolean;