import { VerifyResult } from '@customyai/web'; export { VerifyResult } from '@customyai/web'; /** * @customyai/customy-access/edge * * @deprecated Usa `createEdgeClient` de `@customyai/web`: este módulo es su * adaptador (misma verificación con Web Crypto, JWKS cacheado y rotado) y * conserva `authUrl` opcional de 0.x. * * @example * ```ts * import { createEdgeClient } from "@customyai/customy-access/edge"; * * const customy = createEdgeClient({ * publishableKey: "pk_live_...", * authUrl: "https://access.customy.ai", * }); * * // In middleware: * const { isValid, user } = await customy.verifySession(token); * ``` */ interface CustomyEdgeConfig { /** Publishable key for your Customy Access project */ publishableKey: string; /** Base URL of the Customy Access backend (default: http://localhost:4001) */ authUrl?: string; } declare const createEdgeClient: (config: CustomyEdgeConfig) => { verifySession: (token: string) => Promise; decodeToken: (token: string) => Record | null; }; export { type CustomyEdgeConfig, type CustomyEdgeConfig as EdgeConfig, createEdgeClient };