@platform/cell.schema
Version:
URI and database schemas for the `cell.os`.
26 lines (25 loc) • 841 B
TypeScript
import { t } from '../common';
export declare class RefLinks {
static prefix: string;
static is: {
refKey(input?: string): boolean;
refValue(input?: string): 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: t.IRefLinkQuery;
};
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): t.IRefLink<t.IRefLinkUri> | undefined;
};
}