/** * Valid locations for setting wallpaper */ export type Location = "home" | "lock" | "both"; /** * Error class for wallpaper-specific errors */ export declare class WallpaperError extends Error { originalError?: unknown; constructor(message: string, originalError?: unknown); } /** * Sets wallpaper from a given URL for specified screen location * @param url - The URL of the image to set as wallpaper * @param location - Where to set the wallpaper (`home`, `lock`, or `both`) * gives success message if wallpaper set successfully * @throws {WallpaperError} If the URL is invalid or setting wallpaper fails */ export declare const setWallpaperFromUrl: ({ url, location, }: { url: string; location: Location; }) => Promise; /** * Type guard to check if an error is a WallpaperError */ export declare const isWallpaperError: (error: unknown) => error is WallpaperError; //# sourceMappingURL=index.d.ts.map