import { ABSOLUTE_PATH_REGEX } from "./regex.mjs";
import { slash } from "./slash.mjs";

//#region ../../node_modules/.pnpm/@stryke+path@0.26.19/node_modules/@stryke/path/dist/is-type.mjs
/**
* Check if the path is an absolute path.
*
* @param path - The path to check
* @returns An indicator specifying if the path is an absolute path
*/
function isAbsolutePath(path) {
	return ABSOLUTE_PATH_REGEX.test(slash(path));
}
/**
* Check if the path is an absolute path.
*
* @remarks
* This is an alias for {@link isAbsolutePath}.
*
* @param path - The path to check
* @returns An indicator specifying if the path is an absolute path
*/
function isAbsolute(path) {
	return isAbsolutePath(path);
}

//#endregion
export { isAbsolute };
//# sourceMappingURL=is-type.mjs.map