import type { AgeRangeResult, SetThresholdsResult } from './types'; /** * Sets the age range thresholds for the application * * **Requirements:** * - First threshold is mandatory * - Values must be 1-18 (inclusive) * - Must be in ascending order * - Minimum 2-year separation between values * * @param thresholds - Array of age thresholds * @returns Promise that resolves when thresholds are set * * @example * ```typescript * import AgeDeclaration from 'react-native-age-declaration'; * * // Set age thresholds at app startup * await AgeDeclaration.setAgeThresholds([13, 15, 18]); * ``` */ export declare function setAgeThresholds(thresholds: number[]): Promise; /** * Requests age range information from the platform * * **Important:** * - Must call `setAgeThresholds()` first * - iOS: Requires iOS 26.0+ with DeclaredAgeRange framework * - Android: Requires Android 15+ with Google Play Services * * @returns Promise that resolves with age verification result * * @example * ```typescript * import AgeDeclaration from 'react-native-age-declaration'; * * const result = await AgeDeclaration.requestAgeRange(); * * switch (result.status) { * case 'verified': * console.log('User meets age requirements'); * break; * case 'not_verified': * console.log('User does not meet age requirements'); * break; * case 'unknown': * console.log('Age verification status unknown'); * break; * case 'not_available_yet': * console.log('API not available on this device/OS version'); * break; * } * ``` */ export declare function requestAgeRange(): Promise; /** * Checks if age range API is supported on this device * * @returns Promise that resolves to true if supported * * @example * ```typescript * import AgeDeclaration from 'react-native-age-declaration'; * * const supported = await AgeDeclaration.isSupported(); * * if (supported) { * await AgeDeclaration.setAgeThresholds([13, 18]); * const result = await AgeDeclaration.requestAgeRange(); * } else { * console.log('Age verification not supported on this device'); * } * ``` */ export declare function isSupported(): Promise; declare const _default: { setAgeThresholds: typeof setAgeThresholds; requestAgeRange: typeof requestAgeRange; isSupported: typeof isSupported; }; export default _default; export type { AgeRangeResult, SetThresholdsResult } from './types'; //# sourceMappingURL=index.d.ts.map