import { Data } from '../../../../../types/data';
import { ColumnRenderer } from '../../../List.model';
export type ExternalLinkResolver<T extends Data> = (
/** Row data */
item: T, 
/** Whether or not the external icon is shown (default: true) */
showNewTabIcon?: boolean) => string | undefined;
/**
 * Renders an external link for an item.
 * If the resolver does not return a URL for an item, no link will be rendered for that item.
 *
 * @param resolver Callback function. Row data is passed as an argument.
 * @param showNewTabIcon Optional boolean that determines whether or not the external icon is shown (default: true)
 * @returns A string that should be a valid url
 *
 * @example
 * <List
 *   {...otherProps}
 *   columns=[{
 *     propertyName: 'title'
 *     render: createExternalLinkRenderer(data => `https://www.example.com/${data.id}`)
 * }]/>
 */
export declare const createExternalLinkRenderer: <T extends Data>(resolver: ExternalLinkResolver<T>, showNewTabIcon?: boolean) => ColumnRenderer<T>;
//# sourceMappingURL=ExternalLinkRenderer.d.ts.map