import { WallpaperTarget, WallpaperType, WallpaperFit, ColorFilter, SetWallpaperOptions, DownloadOptions, AutoChangeOptions, WallpaperResult, DownloadResult, CurrentWallpaperInfo, AutoChangeStatus, DeviceWallpaperCapabilities, WallpaperChangeListener } from './types'; /** * Set a wallpaper from a URL or local file path. * * @param source - Remote URL (https://...) or local file path (file:///...) * @param options - Customization options * * @example * // Simple static wallpaper * await setWallpaper('https://example.com/image.jpg'); * * @example * // Set on both screens with blur * await setWallpaper('https://example.com/image.jpg', { * target: WallpaperTarget.BOTH, * blurRadius: 5, * colorFilter: { type: ColorFilter.DARK, intensity: 0.4 }, * }); * * @example * // 3D Parallax * await setWallpaper('https://example.com/image.jpg', { * type: WallpaperType.PARALLAX, * parallax: { intensity: 0.7, useGyroscope: true }, * }); * * @example * // Live GIF wallpaper * await setWallpaper('https://example.com/anim.gif', { * type: WallpaperType.LIVE, * live: { speed: 1.2, loopCount: 0 }, * }); * * @example * // Video wallpaper * await setWallpaper('https://example.com/video.mp4', { * type: WallpaperType.VIDEO, * video: { loop: true, muted: true, speed: 1.0 }, * }); */ export declare function setWallpaper(source: string, options?: SetWallpaperOptions): Promise; /** * Set wallpaper on the home screen only. * Shorthand for setWallpaper(source, { target: WallpaperTarget.HOME }) */ export declare function setHomeWallpaper(source: string, options?: Omit): Promise; /** * Set wallpaper on the lock screen only. * Shorthand for setWallpaper(source, { target: WallpaperTarget.LOCK }) */ export declare function setLockWallpaper(source: string, options?: Omit): Promise; /** * Set wallpaper on both home and lock screen simultaneously. */ export declare function setBothWallpapers(source: string, options?: Omit): Promise; /** * Set different wallpapers for home and lock screen in a single call. * * @example * await setDualWallpaper( * 'https://example.com/home.jpg', * 'https://example.com/lock.jpg', * { fit: WallpaperFit.FILL } * ); */ export declare function setDualWallpaper(homeSource: string, lockSource: string, options?: Omit): Promise<{ home: WallpaperResult; lock: WallpaperResult; }>; /** * Download a wallpaper image to the device storage. * * @example * const result = await downloadWallpaper('https://example.com/image.jpg', { * filename: 'my_wallpaper', * showNotification: true, * }); * console.log(result.filePath); */ export declare function downloadWallpaper(url: string, options?: DownloadOptions): Promise; /** * Start automatically rotating wallpapers at a set interval. * * @example * await startAutoChange({ * sources: ['https://example.com/1.jpg', 'https://example.com/2.jpg'], * intervalMinutes: 60, * shuffle: true, * target: WallpaperTarget.HOME, * }); */ export declare function startAutoChange(options: AutoChangeOptions): Promise; /** * Stop the auto-change wallpaper rotation. */ export declare function stopAutoChange(): Promise; /** * Get the current auto-change status. */ export declare function getAutoChangeStatus(): Promise; /** * Clear the currently set wallpaper (reset to system default). * * @param target - Which screen to clear. Default: BOTH */ export declare function clearWallpaper(target?: WallpaperTarget): Promise; /** * Get information about the current wallpaper set by this app. */ export declare function getCurrentWallpaperInfo(target?: WallpaperTarget): Promise; /** * Get the device's wallpaper capabilities. * Use this to check support before using advanced features. * * @example * const caps = await getDeviceCapabilities(); * if (caps.supportsVideoWallpaper) { * // show video wallpaper option * } */ export declare function getDeviceCapabilities(): Promise; /** * Check if the app has WRITE permission for wallpapers. */ export declare function checkPermission(): Promise; /** * Request wallpaper permission from the user. * Returns true if granted, false if denied. */ export declare function requestPermission(): Promise; /** * Listen for wallpaper change events (triggered by setWallpaper or autoChange). * * @example * const unsubscribe = onWallpaperChanged((event) => { * console.log('Wallpaper changed:', event.target, event.type); * }); * // Later: * unsubscribe(); */ export declare function onWallpaperChanged(listener: WallpaperChangeListener): () => void; export { WallpaperTarget, WallpaperType, WallpaperFit, ColorFilter, }; export type { SetWallpaperOptions, DownloadOptions, AutoChangeOptions, WallpaperResult, DownloadResult, CurrentWallpaperInfo, AutoChangeStatus, DeviceWallpaperCapabilities, WallpaperChangeListener, WallpaperErrorResult, ColorFilterOptions, CropOptions, ParallaxOptions, VideoWallpaperOptions, LiveWallpaperOptions, WallpaperChangeEvent, } from './types'; //# sourceMappingURL=Wallpaper.d.ts.map