/** * Type guard that checks if a given path points to an asset link. * * Rules: * - Returns `true` if the path is not `null`/`undefined` AND * - starts with `/assets/`, or * - ends with a file extension (`.ext`) of 3–4 characters, * optionally followed by a query string (`?`). * - Otherwise returns `false`. * * This function also narrows the type of `path` to `string` * when it returns `true`. * * @param path - The path string (or null/undefined). * @returns `true` if the path represents an asset link, otherwise `false`. * * @example * isAssetsLink('/assets/logo.png'); // true * isAssetsLink('/images/photo.jpg?x=1');// true * isAssetsLink('/docs/page'); // false * isAssetsLink(null); // false */ export declare const isAssetsLink: (path: string | null | undefined) => path is string; //# sourceMappingURL=is-assets-link.d.ts.map