export type IndexLlmInput = {
    description: string;
    propsSchemaExport: string;
    exampleValues: Record<string, unknown>[];
};
export type BuildIndexUpdateArgs = {
    /** Current text of `index.ts`, or `null` when the file doesn't exist yet. */
    existing: string | null;
    exportName: string;
    llm: IndexLlmInput | null;
};
export declare function findConflictingExport(existing: string | null, exportName: string): string | null;
/**
 * Apply the registry add-to-bot edits to `index.ts` text and return the new
 * source.
 *
 * Caller is expected to have already screened for conflicts via
 * `findConflictingExport`.
 *
 */
export declare function buildIndexUpdate(args: BuildIndexUpdateArgs): string;
//# sourceMappingURL=component-index-writer.d.ts.map