import { ContextDeleteRecord, IQueryResponse, IUrl } from "@api-client/core/build/browser.js";
import { Store } from "./Store.js";
/**
 * A store that stores URL history for the application.
 */
export interface UrlHistory {
    /**
     * Adds or updates an URL in the 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 URL history for a space.
     */
    clear(): Promise<void>;
}
export interface UrlHistoryStore extends UrlHistory, Store {
}
//# sourceMappingURL=UrlHistory.d.ts.map