import { ClivlyAuthAdapter, ClivlyUser } from "@clivly/core/auth-adapter"; //#region src/map.d.ts interface WorkOSLikeUser { email: string; firstName?: string | null; id: string; lastName?: string | null; } export declare function workosUserToClivlyUser(user: WorkOSLikeUser): ClivlyUser | null; //#endregion //#region src/index.d.ts export interface WorkOSAuthAdapterOptions { /** WorkOS API key (sk_…). */ apiKey: string; /** WorkOS client ID (client_…). */ clientId: string; /** Session cookie name. Defaults to `wos-session`. */ cookieName?: string; /** Password used to unseal the AuthKit session cookie. */ cookiePassword: string; } /** * WorkOS → ClivlyAuthAdapter. Unseals the host app's AuthKit session cookie and * resolves the CRM end-user's identity. Answers "who is this person?" only — * CRM authorization lives in the separate `crm_members` layer. */ export declare function createWorkOSAuthAdapter(options: WorkOSAuthAdapterOptions): ClivlyAuthAdapter; //#endregion export type { WorkOSLikeUser };