import type { AggregationsToAggregationResults } from '@enonic-types/core'; import type { Aggregations, ByteSource, Content, ContentExistsParams, ContentsResult, CreateContentParams, CreateMediaParams, DeleteContentParams, GetAttachmentStreamParams, GetContentParams, ModifyContentParams, MoveContentParams, PublishContentParams, PublishContentResult, QueryContentParams } from '@enonic-types/lib-content'; import type { Server } from '../implementation/Server'; export declare class LibContent { readonly server: Server; constructor({ server }: { server: Server; }); private _connect; create, Type extends string = string>(params: CreateContentParams): Content; createMedia, Type extends string = string>(params: CreateMediaParams): Content; delete(params: DeleteContentParams): boolean; exists(params: ContentExistsParams): boolean; get = Content>(params: GetContentParams): Hit | null; getAttachmentStream(params: GetAttachmentStreamParams): ByteSource | null; modify, Type extends string = string>(params: ModifyContentParams): Content | null; move, Type extends string = string>(params: MoveContentParams): Content; publish(params: PublishContentParams): PublishContentResult; query = Content, AggregationInput extends Aggregations = never>(params: QueryContentParams & { _debug?: boolean; _trace?: boolean; }): ContentsResult>; }