import type { LoaderContext } from '@rspack/core'; import type { LoaderOptions } from './rspack-loader.js'; export declare function isAbsolutePath(str: string): boolean; export declare function isRelativePath(str: string): boolean; export declare function stringifyRequest(loaderContext: LoaderContext, request: string): string; /** * Extract file path from the identifier. * * @example * * Given identifier `css-loader/index.js??ruleSet[1].rules[1].use[1]!./src/baz.css`, * result in `./src/baz.css` * * Given identifier `css-loader/index.js??ruleSet[1].rules[1].use[1]!./src/baz.css?cssId=123`, and the withPathQuery is false * result in `./src/baz.css` * * Given identifier `css-loader/index.js??ruleSet[1].rules[1].use[1]!./src/baz.css?cssId=123`, and the withPathQuery is true * result in `./src/baz.css?cssId=123` * * @param identifier - The Webpack/Rspack identifier * @param withPathQuery - Whether keep the query(e.g: ?xxx=xx) in the path * @returns The resourcePath of the identifier. */ export declare function extractPathFromIdentifier(identifier: string, withPathQuery?: boolean): string | undefined;