/** * Updates README content by processing the nx-cloud marker section. * - If connectUrl is provided: replaces markers and content with the connect URL section * - If connectUrl is undefined: keeps the content between markers but strips the marker comments * * This ensures users never see the raw markers in their README. * * @param readmeContent - The current README content * @param connectUrl - The Nx Cloud connect URL (optional) * @returns The updated README content with markers processed, or original if markers not found */ export declare function updateReadmeContent(readmeContent: string, connectUrl: string | undefined): string; /** * Updates the README.md file in the given directory with the Nx Cloud connect URL. * This is a convenience wrapper around updateReadmeContent that handles file I/O. * * @param directory - The workspace directory containing README.md * @param connectUrl - The Nx Cloud connect URL * @returns true if the file was modified, false otherwise */ export declare function addConnectUrlToReadme(directory: string, connectUrl: string | undefined): boolean; /** * Commits README.md changes, either by amending the initial commit or creating a new one. * - If already pushed to VCS: creates a new commit (to avoid requiring force push) * - If not pushed: amends the initial commit (cleaner history) * * @param directory - The workspace directory * @param alreadyPushed - Whether the repo was already pushed to VCS */ export declare function amendOrCommitReadme(directory: string, alreadyPushed: boolean): Promise; //# sourceMappingURL=update-readme.d.ts.map