import type { RookSyncGateState } from '../../context/RookSyncGateTypes'; type StartBackgroundSync = { state: RookSyncGateState; enableBackground: boolean; enableLogs: boolean; }; /** * The above TypeScript code defines a function `useRookAutoSync` that handles background * synchronization, 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 * `startBackgroundSync` 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 */ export declare const useRookAutoSync: ({ enableBackground, enableLogs, state, }: StartBackgroundSync) => { startBackgroundServices: () => void; }; export {}; //# sourceMappingURL=useRookAutoSync.d.ts.map