1import { ExpoPushToken, ExpoPushTokenOptions } from './Tokens.types';
2/**
3 * Returns an Expo token that can be used to send a push notification to the device using Expo's push notifications service.
4 *
5 * This method makes requests to the Expo's servers. It can get rejected in cases where the request itself fails
6 * (for example, due to the device being offline, experiencing a network timeout, or other HTTPS request failures).
7 * To provide offline support to your users, you should `try/catch` this method and implement retry logic to attempt
8 * to get the push token later, once the device is back online.
9 *
10 * > For Expo's backend to be able to send notifications to your app, you will need to provide it with push notification keys.
11 * For more information, see [credentials](/push-notifications/push-notifications-setup/#get-credentials-for-development-builds) in the push notifications setup.
12 *
13 * @param options Object allowing you to pass in push notification configuration.
14 * @return Returns a `Promise` that resolves to an object representing acquired push token.
15 * @header fetch
16 *
17 * @example
18 * ```ts
19 * import * as Notifications from 'expo-notifications';
20 *
21 * export async function registerForPushNotificationsAsync(userId: string) {
22 *   const expoPushToken = await Notifications.getExpoPushTokenAsync({
23 *    projectId: 'your-project-id',
24 *   });
25 *
26 *   await fetch('https://example.com/', {
27 *     method: 'POST',
28 *     headers: {
29 *       'Content-Type': 'application/json',
30 *     },
31 *     body: JSON.stringify({
32 *       userId,
33 *       expoPushToken,
34 *     }),
35 *   });
36 * }
37 * ```
38 */
39export default function getExpoPushTokenAsync(options?: ExpoPushTokenOptions): Promise<ExpoPushToken>;
40//# sourceMappingURL=getExpoPushTokenAsync.d.ts.map