@shopify/cli-kit
Version:
A set of utilities, interfaces, and models that are common across all the platform features
16 lines (15 loc) • 625 B
TypeScript
import { Theme } from './types.js';
import { Role } from './utils.js';
import { AdminSession } from '../session.js';
export declare abstract class ThemeManager {
protected adminSession: AdminSession;
protected themeId: string | undefined;
protected abstract setTheme(themeId: string): void;
protected abstract removeTheme(): void;
protected abstract context: string;
constructor(adminSession: AdminSession);
findOrCreate(): Promise<Theme>;
fetch(): Promise<Theme | undefined>;
generateThemeName(context: string): string;
create(themeRole?: Role, themeName?: string): Promise<Theme>;
}