/** * Parses lines from a CODEOWNERS-style file into a mapping of patterns → owners. * Skips blank lines and comments (lines beginning with `#`). * * @param {string[]} lines - Each element is a line from your CODEOWNERS file. * @returns {Record} An object whose keys are normalized path patterns and values are the owner handle. */ export declare const parseCodeowners: (lines: Array) => Record; /** * Converts a full team handle (potentially namespaced and with platform suffix) * into its "short" team name. * * @param {string} teamName - e.g. `"@trackunit/backend-be"` or `"@trackunit/frontend-fe"` * @returns {string | undefined} e.g. `"backend"` or `"frontend"`, or `undefined` if no name given. */ export declare const toShortTeamName: (teamName?: string) => string | undefined; /** * Recursively looks up the CODEOWNER for a given file or directory path * by reading your workspace's CODEOWNERS file. * * @param {string} currentPath - Absolute path to the file/directory you're querying. * @param {string} workspaceRoot - Absolute path to your repo/workspace root. * @param {string} [codeownersFileName="TEAM_CODEOWNERS"] - Filename to read at the root. * @returns {string|undefined} The owner handle or `undefined` if none found. */ export declare const getCodeowner: (currentPath: string, workspaceRoot: string, codeownersFileName?: string) => string | undefined;