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"; import type { Features, HasFeatures, LayerLike, LayersLike, ModelRef } from "../common.js"; /** * Arguments for the copy-features.copy operation. */ export interface CopyFeaturesOperationArgs { /** * Source features to prepare for copying. */ features: Features; /** * Target layer whose geometry and field schema should be used. */ targetLayer: LayerLike; /** * Attribute mappings applied to each copied feature. */ fieldMappings: { /** * Target-layer attribute name. */ targetAttribute: string; /** * Source attribute name, or null when no source attribute is mapped. */ sourceAttribute: string | null; }[]; /** * Whether attachments from source features should be copied to new target * features. */ copyAttachments?: boolean; /** * Optional Copy Features component to target when more than one exists. */ model?: ModelRef; } /** * Arguments for the Copy Features commands. Web only. */ export type CopyFeaturesArgs = Features | (HasFeatures & { /** * Source layer context. This does not specify the target layer. */ layers?: LayersLike; }); /** * Arguments published after features are copied successfully. */ export interface CopyFeaturesCompletedEventArgs { /** * Newly created features in the target layer. */ features: Features; /** * Target layer containing the newly created features. */ layers: LayersLike; } export declare class CopyFeaturesCommands extends CommandRegistry { protected readonly _prefix = "copy-features"; /** * Displays the Copy Features interface for the supplied source features. * Web only. * * @webOnly */ get display(): Command; /** * Adds features to the Copy Features component. Web only. * * @webOnly */ get addFeatures(): Command; /** * Removes features from the Copy Features component. Web only. * * @webOnly */ get removeFeatures(): Command; /** * Clears all source features from the Copy Features component. Web only. * * @webOnly */ get clear(): Command; } export declare class CopyFeaturesOperations extends OperationRegistry { protected readonly _prefix = "copy-features"; /** * Creates in-memory copies of the supplied source features using the target * layer and field mappings. This operation does not add the copied features * to the target layer. Web only. * * @webOnly */ get copy(): Operation; } export declare class CopyFeaturesEvents extends EventRegistry { protected readonly _prefix = "copy-features"; /** * Raised after features are successfully created in the target layer. Web * only. * * @webOnly */ get completed(): Event; }