/** * Checks if a given path is inside a specified parent folder. * * - Normalizes both `child` and `parent` by: * - Converting backslashes to forward slashes. * - Removing leading and trailing slashes. * - Returns `true` if the `child` path is equal to the `parent` path * or if it starts with the `parent` path followed by a `/`. * * @param child - The path to test. * @param parent - The parent folder path to check against. * @returns `true` if `child` is inside (or equal to) `parent`, otherwise `false`. * * @example * isPathInFolder('docs/page', 'docs'); // true * isPathInFolder('docs', 'docs'); // true * isPathInFolder('docs/sub/page', 'docs'); // true * isPathInFolder('images', 'docs'); // false * isPathInFolder('C:\\foo\\bar', 'C:\\foo'); // true */ export declare function isPathInFolder(child: string, parent: string): boolean; //# sourceMappingURL=is-path-in-folder.d.ts.map