import { Observable } from 'rxjs';
import { XrmQueryResult } from './xrm.service';
import { Entity, EntityReference, XrmContextService } from './xrmcontext.service';
import * as i0 from "@angular/core";
export declare class Annotation extends Entity {
    constructor();
    filename: string;
    filesize: number;
    isdocument: boolean;
    notetext: string;
    objectid: EntityReference;
    objectidtypecode: string;
    ownerid: EntityReference;
    subject: string;
    meta(): Annotation;
}
export declare class XrmAnnotationService {
    private xrmService;
    localPrototype: Annotation;
    constructor(xrmService: XrmContextService);
    get(id: string): Observable<Annotation>;
    related(entity: Entity): Observable<XrmQueryResult<Annotation>>;
    add(entity: Entity, subject: string, body: string): Observable<Annotation>;
    update(anno: Annotation): Observable<Annotation>;
    delete(anno: Annotation): Observable<null>;
    static ɵfac: i0.ɵɵFactoryDeclaration<XrmAnnotationService, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<XrmAnnotationService>;
}
