import type { Command } from "../Command.js"; import { CommandRegistry } from "../CommandRegistry.js"; import type { Event } from "../Event.js"; import { EventRegistry } from "../EventRegistry.js"; import type { Operation } from "../Operation.js"; import { OperationRegistry } from "../OperationRegistry.js"; export declare class SettingsCommands extends CommandRegistry { protected readonly _prefix = "settings"; /** * Displays the UI to view and change application settings. Mobile only. * * @mobileOnly */ get display(): Command; /** * Closes the settings UI. Mobile only. * * @mobileOnly */ get close(): Command; /** * Updates and saves changes to the application settings. Mobile only. * * The arguments replace the current settings entirely: any property left * out is reset to its default rather than kept. To change one or two * values, get the current settings with "settings.get" first, change them, * and pass the whole object back. * * **Example:** Switch to metric units and stop remembering the map extent. * * ```json * { * "name": "settings.update", * "arguments": { * "configuredMeasurementSystem": "Metric", * "rememberLayerVisibilities": true, * "rememberMapExtent": false, * "photoResize": "Medium", * "activeTheme": "your-theme-id" * } * } * ``` * * @mobileOnly */ get update(): Command; } export declare class SettingsOperations extends OperationRegistry { protected readonly _prefix = "settings"; /** * Returns the current application settings. Mobile only. * * @mobileOnly */ get get(): Operation; } export declare class SettingsEvents extends EventRegistry { protected readonly _prefix = "settings"; /** * Raised when application settings have been updated. Mobile only. * * @mobileOnly */ get updated(): Event; /** * Raised when application settings have been loaded, e.g. on app launch. * Mobile only. * * @mobileOnly */ get loaded(): Event; /** * Raised when application settings have been unloaded, e.g. when returning * to the app selector in Go. * * @mobileOnly */ get unloaded(): Event; } /** * The current settings. */ export interface SettingsInfo { /** * The configured measurement system to use within the app. */ configuredMeasurementSystem: ConfiguredMeasurementSystem; /** * Indicates if layer visibilities are remembered and restored upon app * startup. */ rememberLayerVisibilities: boolean; /** * Indicates if the map extent is remembered and restored upon app startup. */ rememberMapExtent: boolean; /** * The size that photos will be resized to when adding as a feature * attachment. */ photoResize: PhotoResizeOption; /** * The user selected theme id. */ activeTheme: string; } /** * The approximate size / resolution that photos should be resized to. */ export type PhotoResizeOption = "Original" | "Large" | "Medium" | "Small"; /** * The measurement system units configured for an app. Default uses the device's * default units. */ export type ConfiguredMeasurementSystem = "Default" | "Metric" | "USCustomary";