import { ContextDeleteRecord, IQueryResponse, IUrl } from "@api-client/core/build/browser.js";
import { Store } from "./Store.js";
/**
 * A store that stores web socket URL history for the application.
 */
export interface WsHistory {
    /**
     * Adds or updates an URL in the web socket history store.
     * If the record exists it updates its `cnt`, `time`, and `midnight`.
     *
     * @param url The URL to add to the store.
     */
    add(url: string): Promise<IUrl>;
    /**
     * Queries the store for the URL data that matches the `query`.
     * @param query the search term for the URL.
     */
    query(query: string): Promise<IQueryResponse<IUrl>>;
    /**
     * @param url The URL to delete from the store.
     */
    delete(url: string): Promise<ContextDeleteRecord>;
    /**
     * Clears the web socket URL history for a space.
     */
    clear(): Promise<void>;
}
export interface WsHistoryStore extends WsHistory, Store {
}
//# sourceMappingURL=WsHistory.d.ts.map