/** * Parsing and editing primitives for the `[autoload]` section of project.godot. * * Used by: * - tools/autoload-tools.ts — list/add/remove/update_autoload handlers * - utils/bridge-manager.ts — McpBridge inject/cleanup/repair * * Pure functions: each takes the absolute path to project.godot and returns * either parsed data or a boolean indicating whether the file was mutated. */ export interface AutoloadEntry { name: string; path: string; singleton: boolean; } /** * Matches an empty `[autoload]` section (the header followed by only blank * lines, up to the next section header or end-of-file). Used by cleanup paths * to drop the section after the last entry is removed. */ export declare const EMPTY_AUTOLOAD_SECTION_REGEX: RegExp; /** * Mirrors the parser's `\w+` assumption (parseAutoloads / removeAutoloadEntry). * Enforced on write paths to prevent a name with newlines or INI section * delimiters from corrupting project.godot. */ export declare const VALID_AUTOLOAD_NAME_REGEX: RegExp; export declare function normalizeAutoloadPath(p: string): string; export declare function parseAutoloads(projectFilePath: string, existingContent?: string): AutoloadEntry[]; export declare function addAutoloadEntry(projectFilePath: string, name: string, path: string, singleton: boolean, existingContent?: string): void; /** * Remove the named autoload entry. Also drops the `[autoload]` section header * if the removed entry was the last one in it. Returns true when the file was * mutated. */ export declare function removeAutoloadEntry(projectFilePath: string, name: string): boolean; export declare function updateAutoloadEntry(projectFilePath: string, name: string, newPath?: string, singleton?: boolean): boolean; //# sourceMappingURL=autoload-ini.d.ts.map