import { SDKConfig } from "./Config"; import { OnboardingModule } from "../modules/onboarding/onboarding"; import { LivenessModule } from "../modules/liveness/liveness"; import { SessionResponse, SDKInitConfig } from "../types/onboarding"; /** * SmartComply SDK — main entry point. * * Usage: * const sdk = new SmartComply({ apiKey: "pk_...", clientId: "uuid-...", environment: "sandbox" }); * const session = await sdk.createSession(); * const config = await sdk.initializeConfig(); * // ... use sdk.onboarding and sdk.liveness modules */ export declare class SmartComply { private http; private clientId; private _sessionToken; private _sessionExpiresAt; private _sdkConfig; onboarding: OnboardingModule; liveness: LivenessModule; constructor(config: SDKConfig); /** Current session token (null if not created yet) */ get sessionToken(): string | null; /** Session expiration ISO timestamp */ get sessionExpiresAt(): string | null; /** SDK config fetched from backend (null until initializeConfig() is called) */ get sdkConfig(): SDKInitConfig | null; /** * Create a new SDK session. * * POST /v1/session/create/ * Auth: Authorization: Bearer * Body: { client_id: "" } * * Returns: { token: "...", expires_at: "..." } */ createSession(): Promise; /** * Fetch SDK configuration from the backend. * Must be called after createSession(). * * GET /v1/initialize/ * Auth: x-access-token: * * Returns: { brand_name, theme, verification_type, channels, redirect_url, ... } */ initializeConfig(): Promise; } //# sourceMappingURL=Smartcomply.d.ts.map