import { System } from "./system"; export interface Manifest { requiredPermissions?: string[]; hooks: HookT; functions: { [key: string]: FunctionDef; }; } export interface FunctionDef { path?: string; code?: string; env?: RuntimeEnvironment; } export type RuntimeEnvironment = "client" | "server"; export interface Feature { validateManifest(manifest: Manifest): string[]; apply(system: System): void; }