import { Stream, MemoryStream } from 'xstream'; import { Driver } from '@cycle/run'; import { Location } from 'history'; export declare type Pathname = string; export declare type Search = string; export declare type Hash = string; export declare type LocationKey = string; export declare type HistoryDriver = Driver, MemoryStream>; export declare type PushHistoryInput = { type: 'push'; pathname?: Pathname; search?: Search; state?: any; hash?: Hash; key?: LocationKey; }; export declare type ReplaceHistoryInput = { type: 'replace'; pathname: Pathname; search?: Search; state?: any; hash?: Hash; key?: LocationKey; }; export declare type GoHistoryInput = { type: 'go'; amount: number; }; export declare type GoBackHistoryInput = { type: 'goBack'; }; export declare type GoForwardHistoryInput = { type: 'goForward'; }; export declare type HistoryInput = PushHistoryInput | ReplaceHistoryInput | GoHistoryInput | GoBackHistoryInput | GoForwardHistoryInput | string;