1/* 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15/** 16 * @file 17 * @kit ArkUI 18 * @arkts 1.2 19 */ 20 21 22// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! 23 24import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime' 25import { ButtonType } from './button' 26import { ClickEvent } from './common' 27import { SecurityComponentMethod, SecurityComponentLayoutDirection } from './securityComponent' 28import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from './units' 29import { FontStyle, FontWeight, BorderStyle } from './enums' 30import { Resource } from './../../../api/global/resource' 31export enum PasteIconStyle { 32 LINES = 0 33} 34export enum PasteDescription { 35 PASTE = 0 36} 37export interface PasteButtonOptions { 38 icon?: PasteIconStyle; 39 text?: PasteDescription; 40 buttonType?: ButtonType; 41} 42export enum PasteButtonOnClickResult { 43 SUCCESS = 0, 44 TEMPORARY_AUTHORIZATION_FAILED = 1 45} 46export interface PasteButtonInterface { 47 invoke(): PasteButtonAttribute; 48 49} 50export type Callback_ClickEvent_PasteButtonOnClickResult_Void = (event: ClickEvent, 51 result: PasteButtonOnClickResult) => void; 52export interface PasteButtonAttribute extends SecurityComponentMethod { 53 @memo 54 onClick(value: ((event: ClickEvent,result: PasteButtonOnClickResult) => void)): this; 55} 56@memo 57@ComponentBuilder 58export declare function PasteButton( 59 options?: PasteButtonOptions | undefined, 60 @memo 61 content_?: () => void, 62): PasteButtonAttribute 63