import type { CID } from "multiformats/cid";
import { BareNameFilter, PrivateName } from "./namefilter.js";
import { DecryptedNode, PrivateAddResult, Revision } from "./types.js";
import { Maybe } from "../../../common/index.js";
import MMPT from "./mmpt.js";
export declare const addNode: (mmpt: MMPT, node: DecryptedNode, key: string) => Promise<PrivateAddResult>;
export declare const readNode: (cid: CID, key: string) => Promise<DecryptedNode>;
export declare const getByName: (mmpt: MMPT, name: PrivateName, key: string) => Promise<Maybe<DecryptedNode>>;
export declare const getByCID: (cid: CID, key: string) => Promise<DecryptedNode>;
export declare const getLatestByName: (mmpt: MMPT, name: PrivateName, key: string) => Promise<Maybe<DecryptedNode>>;
export declare const getLatestByCID: (mmpt: MMPT, cid: CID, key: string) => Promise<DecryptedNode>;
export declare const getLatestByBareNameFilter: (mmpt: MMPT, bareName: BareNameFilter, key: string) => Promise<Maybe<DecryptedNode>>;
export declare const findLatestRevision: (mmpt: MMPT, bareName: BareNameFilter, key: string, lastKnownRevision: number) => Promise<Maybe<Revision>>;
export declare const getRevision: (mmpt: MMPT, bareName: BareNameFilter, key: string, revision: number) => Promise<Maybe<Revision>>;
