import { normalizeMountPrefix } from "../../utils/mount-prefix.js"; export type JobsApiMatch = { /** * - Controller action to run. */ action: string; /** * - Extra params extracted from the path. */ params: Record; }; /** * @typedef {object} JobsApiMatch * @property {string} action - Controller action to run. * @property {Record} params - Extra params extracted from the path. */ export { normalizeMountPrefix }; /** * Matches an incoming request against the read-only jobs API routes that live * under the mount prefix. Returns the controller action plus any extracted * params, or null when the path/method isn't part of the jobs API. * @param {object} args - Options. * @param {string} args.prefix - Normalized mount prefix. * @param {string} args.path - Request path without query string. * @param {string} args.method - HTTP method. * @returns {JobsApiMatch | null} - Matched action or null. */ export declare function matchJobsApiPath({ prefix, path, method }: { prefix: string; path: string; method: string; }): JobsApiMatch | null; //# sourceMappingURL=path-matcher.d.ts.map