import type { ConfigParams, Shopify } from '@shopify/shopify-api'; import type { AppConfig } from '../config-types'; /** * Set future flags using the `future` configuration field to opt in to upcoming breaking changes. * * With this feature, you can prepare for major releases ahead of time, as well as try out new features before they are released. * @publicDocs */ export interface FutureFlags { /** * When enabled, the app will start using expiring offline access tokens and automatically refresh them when they are close to expiring. * * @default false */ expiringOfflineAccessTokens?: boolean; } export interface ApiFutureFlags { expiringOfflineAccessTokens: Future extends FutureFlags ? Future['expiringOfflineAccessTokens'] : false; unstable_managedPricingSupport: true; } export type ApiConfigWithFutureFlags = ConfigParams>; export type FutureFlagOptions = FutureFlags | undefined; export type FeatureEnabled = Future extends FutureFlags ? Future[Flag] extends true ? true : false : false; export declare function logDisabledFutureFlags(_config: AppConfig, _logger: Shopify['logger']): void; //# sourceMappingURL=flags.d.ts.map