/** * KiCad Library Table Management * Handles sym-lib-table and fp-lib-table generation and updates */ /** * Generate sym-lib-table content */ export declare function generateSymLibTable(symbolLibPath: string, libraryName?: string, description?: string): string; /** * Generate fp-lib-table content */ export declare function generateFpLibTable(footprintLibPath: string, libraryName?: string, description?: string): string; /** * Check if a library entry exists in a lib-table file */ export declare function libraryExistsInTable(tableContent: string, libraryName: string): boolean; /** * Add a library entry to an existing lib-table content */ export declare function addLibraryToTable(tableContent: string, libraryName: string, libraryPath: string, type: 'sym' | 'fp', description?: string): string; /** * Ensure sym-lib-table exists and contains specified library * @param projectDir - Path to the KiCad project directory * @param symbolLibPath - Path to the symbol library file (relative or absolute) * @param libraryName - Library name (default: LCSC) * @param description - Library description * @returns true if table was created or modified, false if already correct */ export declare function ensureSymLibTable(projectDir: string, symbolLibPath: string, libraryName?: string, description?: string): Promise<{ created: boolean; modified: boolean; path: string; }>; /** * Ensure fp-lib-table exists and contains specified library * @param projectDir - Path to the KiCad project directory * @param footprintLibPath - Path to the footprint library directory (relative or absolute) * @param libraryName - Library name (default: LCSC) * @param description - Library description * @returns true if table was created or modified, false if already correct */ export declare function ensureFpLibTable(projectDir: string, footprintLibPath: string, libraryName?: string, description?: string): Promise<{ created: boolean; modified: boolean; path: string; }>; /** * Get the symbol reference string for use in schematics * @param symbolName - The symbol name within the library * @param libraryName - Library name (default: LCSC) * @returns Full reference like "LCSC:SymbolName" */ export declare function getSymbolReference(symbolName: string, libraryName?: string): string; /** * Get the footprint reference string for use in symbols/schematics * @param footprintName - The footprint filename (without .kicad_mod) * @param libraryName - Library name (default: LCSC) * @returns Full reference like "LCSC:FootprintName" */ export declare function getFootprintReference(footprintName: string, libraryName?: string): string; //# sourceMappingURL=lib-table.d.ts.map