declare module 'react-preload-link' { import * as React from 'react'; export interface PreloadLinkConfigOptions { onLoading?: () => any; onSuccess?: () => any; onFail?: () => any; onNavigate?: () => any; } export type PreloadLinkConfig = (options: PreloadLinkConfigOptions) => void; export type PreloadLinkLifecycleHook = (defaultHook: () => void) => any; type PromiseFn = () => Promise; export interface PreloadLinkProps { to: string, load?: PromiseFn | PromiseFn[], onLoading?: PreloadLinkLifecycleHook, onSuccess?: PreloadLinkLifecycleHook, onFail?: PreloadLinkLifecycleHook, onNavigate?: PreloadLinkLifecycleHook, loadMiddleware?: (data: any) => any, noInterrupt?: boolean, className?: string, navLink?: boolean, activeClassName?: string, onClick?: () => any, } export const configure: PreloadLinkConfig; export class PreloadLinkComponent extends React.Component {} export default class PreloadLink extends React.Component {} }