import type { UmbDataSourceResponse } from '../data-source-response.interface.js'; import type { UmbReadDetailDataSource } from './read/index.js'; import type { UmbDeepPartialObject } from '../../utils/index.js'; import type { UmbControllerHost } from '../../../../libs/controller-api/index.js'; export interface UmbDetailDataSourceConstructor = UmbDetailDataSource> { new (host: UmbControllerHost): UmbDetailDataSourceType; } export interface UmbDetailDataSource extends UmbReadDetailDataSource { createScaffold(preset?: UmbDeepPartialObject): Promise>; create(data: DetailType, parentUnique: string | null): Promise>; update(data: DetailType): Promise>; delete(unique: string): Promise>; }