import { MapNumberTo, MapStringTo, Nullable, Object_Unknown } from "../../../base-types"; import { IContentHubClient } from "../../../clients/content-hub-client"; import { IParentRelation, RelationBase } from "../relation"; import { RelationRole } from "../relation-role"; import { IToOneRelation } from "./to-one-relation"; /** * A relation where the parent has one child. */ export interface IParentToOneChildRelation extends IParentRelation, IToOneRelation { /** * The child id. */ child: Nullable; /** * Gets the properties for a child. * * If no properties are found, an empty list is returned. */ getChildProperties(): MapStringTo; } export declare class ParentToOneChildRelation extends RelationBase implements IParentToOneChildRelation { private _child; readonly role: RelationRole; readonly isMultiValue: boolean; get child(): Nullable; set child(id: Nullable); get isDirty(): boolean; constructor(name: string, properties?: Nullable>>, client?: IContentHubClient); getIds(): Array; setIds(ids: Array): void; setIdentifierAsync(identifier: Nullable): Promise; clear(): void; getId(): Nullable; setId(id: Nullable): void; startTracking(): void; markClean(): void; getChildProperties(): MapStringTo; }