import type { RookSyncGateState } from '../../context/RookSyncGateTypes'; /** * The above TypeScript code defines a function `useRookAutoSync` that handles background * synchronization for an iOS app, including user ID validation and error messaging. * @property {boolean} enableBackground - The `enableBackground` property in the `useRookAutoSync` * function determines whether background synchronization should be enabled. If `enableBackground` is * set to `true`, the function will listen for changes in the app state and trigger the * `startIOSBackgroundSync` function when the app transitions from * @property {boolean} enableLogs - The `enableLogs` property in the `useRookAutoSync` function is a * boolean value that determines whether logging should be enabled or not. If `enableLogs` is set to * `true`, logging messages will be displayed in the console to provide information about the * background synchronization process. If ` * @property {RookSyncGateState} state - The `state` property in the `useRookAutoSync` function * represents the current state of the RookSyncGate. It includes information such as whether the state * is ready, the permissions status, and the user ID associated with the state. This state is used to * determine when to start the */ type StartBackgroundSync = { enableBackground: boolean; enableLogs: boolean; state: RookSyncGateState; }; export declare const useRookAutoSync: ({ enableBackground, enableLogs, state, }: StartBackgroundSync) => { startIOSBackgroundSync: () => Promise; }; export {}; //# sourceMappingURL=useRookAutoSync.d.ts.map