@platform/cell.schema
Version:
URI and database schemas for the `cell.os`.
27 lines (26 loc) • 909 B
TypeScript
import { t } from '../common';
export declare class FileLinks {
static prefix: string;
static is: {
fileKey(input?: string | undefined): boolean;
fileValue(input?: string | undefined): boolean;
fileUploading(value?: string | undefined): boolean;
};
static total(links?: t.IUriMap): number;
static toKey(filename: string): string;
static parseKey(linkKey: string): t.ILinkKey;
static parseValue(linkValue: string): {
toString: t.FileLinkToString;
uri: t.IFileUri;
value: string;
query: {
hash?: string | undefined;
status?: "uploading" | undefined;
};
};
static parse(linkKey: string, linkValue: string): t.IFileLink;
static toList(links?: t.IUriMap): t.IFileLink[];
static find(links?: t.IUriMap): {
byName(path?: string | undefined): t.IFileLink | undefined;
};
}