UNPKG

@platform/cell.schema

Version:

URI and database schemas for the `cell.os`.

28 lines (27 loc) 912 B
import { t } from '../common'; export declare class RefLinks { static prefix: string; static is: { refKey(input?: string | undefined): boolean; refValue(input?: string | undefined): boolean; }; static total(links?: t.IUriMap): number; static toKey(linkName: string): string; static parseKey(linkKey: string): t.ILinkKey; static parseValue(linkValue: string): { toString: t.RefLinkToString; uri: t.IRefLinkUri; value: string; query: { hash?: string | undefined; }; }; static parse(linkKey: string, linkValue: string): t.IRefLink; static toValue(uri: t.IUri, options?: { hash?: string; }): string; static toList(links?: t.IUriMap): t.IRefLink<t.IRefLinkUri>[]; static find(links?: t.IUriMap): { byName(path?: string | undefined): t.IRefLink<t.IRefLinkUri> | undefined; }; }