export type HSType = string | { type: string; param: HSType[]; }; export type HSField = { name: string; type: HSType; }; export type HSStruct = { kind: 'struct'; fields: HSField[]; }; export type HSFunction = { input: HSField[]; output: HSType; }; export type HSService = { path: string; functions: { name: string; fn: HSFunction; }[]; events: { name: string; event: HSType; }[]; subservices: { name: string; service: string; }[]; }; export type Hyperschema = { types: { name: string; type: HSStruct; }[]; services: { name: string; service: HSService; }[]; }; export declare function buildHyperschema(schema: any): Hyperschema; export declare function writeHyperschema(dir: string, hs: any): Promise;