import React from 'react'; import { Environment } from '../enum'; /** 與 Web SDK / 文件一致:onSuccess 回傳的 user 僅包含 id, fullName, phoneNumber, email, age, birthDate */ export type SnapMatchUser = { id: string; fullName?: string | null; phoneNumber?: string | null; email?: string | null; age?: number; birthDate?: string | null; }; export type SnapMatchProps = { apiKeyId: string; secretKey: string; environment: Environment; onSuccess: (user: SnapMatchUser) => void; onError: (message: string) => void; /** 若已取得 session_ 前綴的 token 可傳入,否則 SDK 會呼叫 createTokenWithoutRedirectUrl */ token?: string; /** 語系,例如 'en' | 'zh-TW',對應 Frontend URL ?locale= */ locale?: string; /** 結果頁自動返回掃臉的秒數,對應 Frontend URL ?autoRedirect=,0 表示不自動 */ autoRedirectSeconds?: number; /** 品牌主題色(CSS 顏色值,例如 '#FF0000' 或 'rgb(255,0,0)'),用於套用至掃臉畫面的提示文字等元素 */ primaryColor?: string; /** 品牌 Logo URL,顯示於掃臉畫面及結果頁頂部中央 */ logoUrl?: string; }; export default function SnapMatch({ apiKeyId, secretKey, environment, onSuccess, onError, token: tokenProp, locale: localeProp, autoRedirectSeconds, primaryColor, logoUrl, }: SnapMatchProps): React.JSX.Element; //# sourceMappingURL=SnapMatch.d.ts.map