@bynn-intelligence/agemin-sdk
Version:
agemin.com SDK for age verification
32 lines (31 loc) • 918 B
TypeScript
/**
* Check if the current device is mobile
*/
export declare function isMobile(): boolean;
/**
* Check if the screen is small (mobile-sized)
*/
export declare function isSmallScreen(): boolean;
/**
* Check if the browser supports required features
*/
export declare function isSupported(): boolean;
/**
* Get the appropriate verification mode based on device
*/
export declare function getDefaultMode(): 'modal';
/**
* Get the browser's language
*/
export declare function getBrowserLanguage(): string;
/**
* Check if browser supports cookies
*/
export declare function supportsCookies(): boolean;
/**
* Check if the current user agent is a search engine bot/crawler
* Used to allow search engines to bypass age verification for SEO purposes
*
* @param mode - Detection mode: 'ua' | 'headless' | 'cookies' | 'combined' | 'strict'
*/
export declare function isSearchEngineBot(mode?: string): boolean;