/**
 * Pure path → (collection, slug) matching, shared by `/resolve` and the
 * per-page `.md` route so the two never disagree about which document a public
 * URL maps to.
 */
import type { ActuateCMSConfig } from '../config/types.js';
export interface PathMatch {
    collection: string;
    slug: string;
    /** True when the input path is the site root (resolves to home/index). */
    isRoot: boolean;
}
/**
 * Resolve a public URL path to the collection + slug it addresses, using the
 * same precedence as the `/resolve` endpoint:
 *   1. root → first prefix-less page collection, slug `home`
 *   2. a collection whose `urlPrefix` matches the leading segments
 *   3. a prefix-less page collection (single-segment fallback → `pages`)
 *   4. `<collection>/<slug…>` literal fallback for multi-segment paths
 */
export declare function matchPathToCollection(config: Pick<ActuateCMSConfig, 'collections'> | null | undefined, pathParam: string): PathMatch | null;
//# sourceMappingURL=resolve-path.d.ts.map