/// <reference types="fhir" />
export interface DecryptedAppData {
    id?: string;
    data: any;
    tags?: string[];
    customCreationDate?: Date;
    updatedDate?: Date;
    commonKeyId?: string;
}
export interface Record {
    id?: string;
    fhirResource: fhir.DomainResource;
    annotations?: string[];
    customCreationDate?: Date;
    updatedDate?: Date;
    partner?: string;
}
export interface FetchResponse {
    totalCount: number;
    records: Record[];
}
declare const appDataService: {
    createAppData(ownerId: string, data: any, date?: Date, annotations?: string[]): Promise<any>;
    updateAppData(ownerId: string, data: any, id: string, date: any, annotations?: string[]): Promise<any>;
    fetchAppData(ownerId: string, appDataId: string): Promise<DecryptedAppData>;
    deleteAppData(ownerId: string, resourceId: string): Promise<void>;
    fetchAllAppData(ownerId: string): Promise<FetchResponse>;
};
export default appDataService;
