import type { Json } from '../types.js'; /** * Derives a document's content id: `base64url(SHA-256(utf8(canonicalize(doc))))`, * no padding. Byte-identical across replicas for the same logical document, so a * content-addressed resource lands on the same id everywhere it is stored. * * @param doc {Json} the document to address * @returns {string} the unpadded base64url content id (43 chars for SHA-256) */ export declare function contentCid(doc: Json): string; /** * Named-options alias of {@link contentCid}, for callers that address a `doc` * by keyword. Synchronous; a caller that `await`s the result still works. * * @param options {object} * @param options.doc {object} the document to address * @returns {string} */ export declare function cidFrom({ doc }: { doc: object; }): string; /** * Derives a Space id from a controller DID: `base64url(SHA-256(utf8(did)))`, no * padding. Byte-identical across replicas, so the same controller lands on the * same WAS Space wherever it connects. * * @param controllerDid {string} the Space controller (e.g. a `did:key`) * @returns {string} the unpadded base64url Space id */ export declare function deriveSpaceId(controllerDid: string): string; //# sourceMappingURL=cid.d.ts.map