import type { CreateNodeParams, HasValueFilter, MoveNodeParams, Node, QueryNodeParams } from '@enonic-types/lib-node'; import type { GetActiveVersionParamObject, GetActiveVersionResponse, Log, NodeModifyParams, NodeQueryResponse, NodeRefreshParams, RepoNodeWithData } from '../types'; import type { Repo } from './Repo'; interface Nodes { [key: string]: RepoNodeWithData; } interface PathIndex { [key: string]: string; } interface SearchIndex { [_indexConfig: string]: { [valueString: string]: string[]; }; } export declare class Branch { static generateInstantString(): string; readonly binaryReferences: Record>; readonly id: string; readonly nodes: Nodes; readonly pathIndex: PathIndex; readonly searchIndex: SearchIndex; readonly repo: Repo; readonly log: Log; constructor({ branchId, repo }: { branchId: string; repo: Repo; }); private _queryDateRange; _createNodeInternal({ _trace, _id, _indexConfig, _name, _parentPath, _ts, _versionKey, ...rest }: CreateNodeParams & { _id?: string; _trace?: boolean; }): Node; createNode(params: CreateNodeParams & { _trace?: boolean; }): Node; private keyToId; existsNode(key: string): boolean; deleteNode(keys: string | string[]): string[]; getBranchId(): string; getNode>({ _trace, key, }: { _trace?: boolean; key: string; }): RepoNodeWithData | RepoNodeWithData[]; getNodes>({ _trace, keys, }: { _trace?: boolean; keys: string[]; }): RepoNodeWithData | RepoNodeWithData[]; getNodeActiveVersion({ key }: GetActiveVersionParamObject): GetActiveVersionResponse; getRepo(): Repo; modifyNode({ key, editor }: NodeModifyParams): RepoNodeWithData; moveNode({ source, target }: MoveNodeParams): RepoNodeWithData | null; _overwriteNode({ node }: { node: RepoNodeWithData; }): RepoNodeWithData; _handleHasValueFilter(hasValueFilter: HasValueFilter): string[]; query({ _trace, count, filters, query, start }: QueryNodeParams & { _trace?: boolean; }): NodeQueryResponse; refresh({ mode, repo, branch }?: NodeRefreshParams): void; } export {};