@platform/cell.schema
Version:
URI and database schemas for the `cell.os`.
31 lines (30 loc) • 875 B
TypeScript
import { t } from '../common';
declare type Uri = string;
export declare const ManifestFetch: {
get<T extends t.Manifest<t.ManifestFile, import("@platform/cell.types").ManifestHash>>(args: {
host: string | number;
cell: Uri;
path: string;
}): Promise<{
ok: boolean;
url: string;
path: string;
status: number;
exists: boolean;
json: T | undefined;
files: t.ManifestFile[];
}>;
url(input: string): {
url: t.ManifestUrlParts;
get<T_1 extends t.Manifest<t.ManifestFile, import("@platform/cell.types").ManifestHash>>(): Promise<{
ok: boolean;
url: string;
path: string;
status: number;
exists: boolean;
json: T_1 | undefined;
files: t.ManifestFile[];
}>;
};
};
export {};