import { Pathy } from '@bscotch/pathy'; import { z } from 'zod'; import { StitchStorage } from './StitchStorage.js'; export type StitchProjectConfigFile = z.infer<(typeof StitchProjectConfig)['fileSchema']>; /** The Project Config lives alongside the .yyp file */ export declare class StitchProjectConfig { readonly storage: StitchStorage; static readonly fileSchema: z.ZodObject<{ $schema: z.ZodDefault>; textureGroupAssignments: z.ZodDefault>; audioGroupAssignments: z.ZodDefault>; runtimeVersion: z.ZodOptional; newSpriteRules: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ allowedNames: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ allowedNames: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; newSoundRules: z.ZodOptional>; defaults: z.ZodOptional; }, "strip", z.ZodTypeAny, { mono?: boolean | undefined; }, { mono?: boolean | undefined; }>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ allowedNames: z.ZodOptional>; defaults: z.ZodOptional; }, "strip", z.ZodTypeAny, { mono?: boolean | undefined; }, { mono?: boolean | undefined; }>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ allowedNames: z.ZodOptional>; defaults: z.ZodOptional; }, "strip", z.ZodTypeAny, { mono?: boolean | undefined; }, { mono?: boolean | undefined; }>>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ $schema: z.ZodDefault>; textureGroupAssignments: z.ZodDefault>; audioGroupAssignments: z.ZodDefault>; runtimeVersion: z.ZodOptional; newSpriteRules: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ allowedNames: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ allowedNames: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; newSoundRules: z.ZodOptional>; defaults: z.ZodOptional; }, "strip", z.ZodTypeAny, { mono?: boolean | undefined; }, { mono?: boolean | undefined; }>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ allowedNames: z.ZodOptional>; defaults: z.ZodOptional; }, "strip", z.ZodTypeAny, { mono?: boolean | undefined; }, { mono?: boolean | undefined; }>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ allowedNames: z.ZodOptional>; defaults: z.ZodOptional; }, "strip", z.ZodTypeAny, { mono?: boolean | undefined; }, { mono?: boolean | undefined; }>>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ $schema: z.ZodDefault>; textureGroupAssignments: z.ZodDefault>; audioGroupAssignments: z.ZodDefault>; runtimeVersion: z.ZodOptional; newSpriteRules: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ allowedNames: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ allowedNames: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; newSoundRules: z.ZodOptional>; defaults: z.ZodOptional; }, "strip", z.ZodTypeAny, { mono?: boolean | undefined; }, { mono?: boolean | undefined; }>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ allowedNames: z.ZodOptional>; defaults: z.ZodOptional; }, "strip", z.ZodTypeAny, { mono?: boolean | undefined; }, { mono?: boolean | undefined; }>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ allowedNames: z.ZodOptional>; defaults: z.ZodOptional; }, "strip", z.ZodTypeAny, { mono?: boolean | undefined; }, { mono?: boolean | undefined; }>>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>; protected constructor(storage: StitchStorage); get filePathAbsolute(): string; getRuntimeVersion(): Promise; setRuntimeVersion(version: string | undefined): Promise; getTextureGroupAssignments(): Promise>; getTextureGroupsWithAssignedFolders(): Promise; /** * The folders that have an assigned texture group, * sorted from *least* to *most* specific (allowing * texture groups of contained sprites to be assigned * in order). */ getFoldersWithAssignedTextureGroups(): Promise; getAudioGroupAssignments(): Promise>; getAudioGroupsWithAssignedFolders(): Promise; /** * The folders that have an assigned texture group, * sorted from *least* to *most* specific (allowing * texture groups of contained sprites to be assigned * in order). */ getFoldersWithAssignedAudioGroups(): Promise; private addGroupAssignment; private deleteGroupAssignment; private getGroupAssignmentForPath; findTextureGroupForPath(path: string): Promise; addTextureGroupAssignment(folder: string, textureGroup: string): Promise; deleteTextureGroupAssignment(folder: string): Promise; addAudioGroupAssignment(folder: string, textureGroup: string): Promise; findAudioGroupForPath(path: string): Promise; deleteAudioGroupAssignment(folder: string): Promise; load(): Promise>; textureGroupAssignments: z.ZodDefault>; audioGroupAssignments: z.ZodDefault>; runtimeVersion: z.ZodOptional; newSpriteRules: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ allowedNames: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ allowedNames: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; newSoundRules: z.ZodOptional>; defaults: z.ZodOptional; }, "strip", z.ZodTypeAny, { mono?: boolean | undefined; }, { mono?: boolean | undefined; }>>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ allowedNames: z.ZodOptional>; defaults: z.ZodOptional; }, "strip", z.ZodTypeAny, { mono?: boolean | undefined; }, { mono?: boolean | undefined; }>>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ allowedNames: z.ZodOptional>; defaults: z.ZodOptional; }, "strip", z.ZodTypeAny, { mono?: boolean | undefined; }, { mono?: boolean | undefined; }>>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>; private loadField; private saveField; private save; /** * Given a path to a `.yyp` file, stitch config file, or folder containing a yyp file, * get a StitchProjectConfig instance. */ static from(path: string | Pathy): StitchProjectConfig; static from(storage: StitchStorage): StitchProjectConfig; } //# sourceMappingURL=StitchProjectConfig.d.ts.map