import React from 'react'; import { CheckFrequency } from './enums/CheckFrequency.enum'; import type { SyncOptions } from './types'; export interface CodePushOptions extends SyncOptions { /** * Specifies when you would like to synchronize updates with the CodePush server. * * Defaults to CheckFrequency.ON_APP_START. */ checkFrequency?: CheckFrequency; /** * Specifies a custom device ID (client unique ID) to use for this session. * * If not provided, the default device ID from native configuration will be used. */ deviceId?: string; /** * Specifies a custom server URL to use for checking updates. * * If not provided, the default server URL from native configuration will be used. */ serverUrl?: string; } /** * Wraps a React component inside a "higher order" React component that knows how to synchronize your app's JavaScript bundle and image assets when it is mounted. * * Internally, the higher-order component calls `sync` inside its `componentDidMount` lifecycle handle, which in turns performs an update check, downloads the update if it exists and installs the update for you. * * @param component the React Component that will be decorated */ export declare function withCodePush

>(component: React.ComponentType

): React.ComponentType; /** * Wraps a React component inside a "higher order" React component that knows how to synchronize your app's JavaScript bundle and image assets when it is mounted. * * Internally, the higher-order component calls `sync` inside its `componentDidMount` lifecycle handle, which in turns performs an update check, downloads the update if it exists and installs the update for you. * * @param options Options used to configure the end-user sync and update experience (e.g. when to check for updates?, show a prompt?, install the update immediately?). */ export declare function withCodePush

>(options: CodePushOptions): (component: React.ComponentType

) => React.ComponentType; export default withCodePush; //# sourceMappingURL=CodePush.d.ts.map