opds-web-client
Version:
30 lines (29 loc) • 1.01 kB
TypeScript
import * as React from "react";
import { Store } from "redux";
import { CollectionData, LaneData, BookData } from "../interfaces";
export interface LanesProps {
url: string;
lanes?: LaneData[];
fetchCollection?: (url: string) => Promise<CollectionData>;
clearCollection?: () => void;
store?: Store<{
collection: CollectionData;
}>;
namespace?: string;
proxyUrl?: string;
hiddenBookIds?: string[];
hideMoreLinks?: boolean;
isFetching?: boolean;
updateBook: (url: string) => Promise<BookData>;
isSignedIn?: boolean;
epubReaderUrlTemplate?: (epubUrl: string) => string;
}
/** All the lanes for a collection. */
export declare class Lanes extends React.Component<LanesProps, {}> {
render(): JSX.Element;
componentWillMount(): void;
componentWillReceiveProps(newProps: any): void;
componentWillUnmount(): void;
}
declare const ConnectedLanes: import("react-redux").ConnectedComponent<typeof Lanes, any>;
export default ConnectedLanes;