/**
 * Removes the fragment identifier (`#...`) from a given path string.
 *
 * If the path contains a `#`, returns the substring before the first `#`.
 * Otherwise, returns the path unchanged.
 *
 * @param path - The path string to process.
 * @returns The path without its fragment identifier, or `undefined` if input is `undefined`.
 *
 * @example
 * removeFragment('docs/page.md#section'); // "docs/page.md"
 * removeFragment('docs/guide');       // "docs/guide"
 * removeFragment(undefined);          // undefined
 */
export declare function removeFragment<T extends string | undefined>(path: T): T;
//# sourceMappingURL=remove-fragment.d.ts.map