/**
 * Copyright (c) 2025 Huawei Technologies Co., Ltd.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
import { ViewProps, HostComponent } from 'react-native';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';

export interface MountEvent {
  text: string;
}

export interface CodegenLibArkTSSampleComponentProps extends ViewProps {
  onMount: DirectEventHandler<MountEvent>;
  text: string;
}

export default codegenNativeComponent<CodegenLibArkTSSampleComponentProps>(
  'CodegenLibArkTSSampleComponent'
) as HostComponent<CodegenLibArkTSSampleComponentProps>;