sb-mig
Version:
CLI to rule the world. (and handle stuff related to Storyblok CMS)
24 lines (23 loc) • 958 B
TypeScript
import type { StoryblokComponentSchemaBase } from "storyblok-schema-types";
type ComponentData = {
[K in keyof StoryblokComponentSchemaBase<any>]: any;
};
export interface ResolversBy {
match: string[];
componentData: Partial<ComponentData>;
}
export interface SchemaGlobalResolvers {
all?: Omit<ResolversBy, "match">;
byPluginNames?: ResolversBy[];
byComponentGroupNames?: ResolversBy[];
byComponentNames?: ResolversBy[];
}
export declare const transformWithResolverFiles: (componentsContent: any) => Promise<any>;
export declare const transformWithMainConfigFile: (componentsContent: any) => any;
/**
* side effect: true
*/
export declare const resolveGlobalTransformations: (componentsContent: any) => Promise<any>;
export declare const extendFields: (componentNamesResolver: any, component: any) => void;
export declare const resolverTransformations: (componentsContent: any, resolverFilesContent: any) => any[];
export {};