/** One capturing group and no flags, for callers that highlight through a library. */ export declare const URL_CAPTURE_PATTERN: RegExp; export type TextSegment = { text: string; url?: string; }; export declare const splitOnLinks: (text: string) => TextSegment[]; /** The single link a paste consists of, or nothing when it is anything else. */ export declare const readPastedLink: (text: string) => string; /** The file name in the path, without the query a signed url drags along. */ export declare const getUrlFileName: (url: string) => string; /** Judged by the name in the path: reading the type would mean fetching it. */ export declare const getIsImageUrl: (url: string) => boolean; //# sourceMappingURL=links.d.ts.map