1 | /**
|
2 | Check if a URL is absolute.
|
3 |
|
4 | @param url - The URL to check.
|
5 |
|
6 | @example
|
7 | ```
|
8 | import isAbsoluteUrl from 'is-absolute-url';
|
9 |
|
10 | isAbsoluteUrl('http://sindresorhus.com/foo/bar');
|
11 | //=> true
|
12 |
|
13 | isAbsoluteUrl('//sindresorhus.com');
|
14 | //=> false
|
15 |
|
16 | isAbsoluteUrl('foo/bar');
|
17 | //=> false
|
18 | ```
|
19 | */
|
20 | export default function isAbsoluteUrl(url: string): boolean;
|