UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

23 lines (22 loc) 992 B
import { ServiceContext } from "../../utils/services/types.mjs"; //#region src/libs/kv/namespaces.d.ts /** * Returns the current token for a namespace. * Uses a stable default token when the namespace has not been initialized. */ declare const getNamespaceToken: (context: ServiceContext, namespace: string) => Promise<string>; /** * Returns current tokens for multiple namespaces in a single call. */ declare const getNamespaceTokens: (context: ServiceContext, namespaces: string[]) => Promise<any>; /** * Rotates a namespace token so any keys derived from that token become stale. */ declare const invalidateNamespace: (context: ServiceContext, namespace: string) => Promise<void>; /** * Rotates tokens for multiple namespaces. */ declare const invalidateNamespaces: (context: ServiceContext, namespaces: string[]) => Promise<void>; //#endregion export { getNamespaceToken, getNamespaceTokens, invalidateNamespace, invalidateNamespaces }; //# sourceMappingURL=namespaces.d.mts.map