import { VersionsMetaframe } from "../versions.js"; import { MetapageDefinitionV1 } from "./metapage.js"; import { MetaframePipeDefinition } from "../v0_4/index.js"; export type MetaframeEditTypeMetaframeV1 = { url: string; params?: { from: string; to?: string; toType?: "search" | "hash" | "path"; }[]; }; export type MetaframeMetadataV1 = { name?: string; description?: string; author?: string; image?: string; tags?: string[]; operations?: MetaframeOperationsV1; }; export interface MetaframeDefinitionV1 { version: VersionsMetaframe; inputs?: { [key: string]: MetaframePipeDefinition; }; outputs?: { [key: string]: MetaframePipeDefinition; }; metadata: MetaframeMetadataV1; allow?: string; } export type MetaframeEditTypesV1 = "metapage" | "url"; export interface MetaframeEditTypeUrlV1Param { from: string; to?: string; toType?: "search" | "hash"; } export type MetaframeEditTypeUrlV1 = { type: MetaframeEditTypesV1; url: string; params?: MetaframeEditTypeUrlV1Param[]; }; export interface MetaframeEditTypeMetapageV1Param { metaframe?: string; from: string; to?: string; } export interface MetaframeEditTypeMetapageV1 { type: MetaframeEditTypesV1; metapage: MetapageDefinitionV1; metaframe: string; params?: MetaframeEditTypeMetapageV1Param[]; } export type MetaframeOperationTypeV1 = MetaframeEditTypeUrlV1 | MetaframeEditTypeMetapageV1; export interface MetaframeOperationsV1 { create?: MetaframeOperationTypeV1; edit?: MetaframeOperationTypeV1; view?: MetaframeOperationTypeV1; } //# sourceMappingURL=metaframe.d.ts.map