@wocker/core
Version:
Core of the Wocker
16 lines (15 loc) • 574 B
TypeScript
import { EnvConfig } from "../types";
import { Preset } from "../makes/Preset";
type SearchOptions = Partial<{
name: string;
source: string;
path: string;
}>;
declare abstract class PresetService {
abstract getImageName(preset: any, buildArgs?: EnvConfig): string;
abstract save(preset: any): Promise<void>;
abstract get(name: string): Promise<any | null>;
abstract search(options?: SearchOptions): Preset[];
abstract searchOne(options?: SearchOptions): Preset | null;
}
export { PresetService, SearchOptions as PresetServiceSearchOptions };