import { useListCollectionsQuery, useListCollectionsTreeQuery } from "../../api";
import type { Collection, ListCollectionsRequest, ListCollectionsTreeRequest } from "../../../metabase-types/api";
import getExpandedCollectionsById from "./getExpandedCollectionsById";
type ListParams = {
    tree?: boolean;
} & (ListCollectionsRequest | ListCollectionsTreeRequest);
/**
 * @deprecated use "metabase/api" instead
 */
declare const Collections: any;
declare function useListQuery(params: ListParams | undefined, options: Parameters<typeof useListCollectionsTreeQuery | typeof useListCollectionsQuery>[1]): (Record<string, any> & {
    refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<void | ListCollectionsTreeRequest, import("@reduxjs/toolkit/query").BaseQueryFn, "dashboard" | "schema" | "table" | "action" | "card" | "database" | "field" | "segment" | "user" | "snippet" | "collection" | "public-dashboard" | "persisted-info" | "field-values" | "alert" | "bookmark" | "subscription" | "indexed-entity" | "timeline" | "api-key" | "cloud-migration" | "channel" | "dashboard-question-candidates" | "model-index" | "parameter-values" | "permissions-group" | "persisted-model" | "revision" | "subscription-channel" | "task" | "timeline-event" | "embed-dashboard" | "public-card" | "embed-card" | "public-action" | "user-key-value", Collection[], "metabase-api">>;
}) | (Record<string, any> & {
    refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<void | ListCollectionsRequest, import("@reduxjs/toolkit/query").BaseQueryFn, "dashboard" | "schema" | "table" | "action" | "card" | "database" | "field" | "segment" | "user" | "snippet" | "collection" | "public-dashboard" | "persisted-info" | "field-values" | "alert" | "bookmark" | "subscription" | "indexed-entity" | "timeline" | "api-key" | "cloud-migration" | "channel" | "dashboard-question-candidates" | "model-index" | "parameter-values" | "permissions-group" | "persisted-model" | "revision" | "subscription-channel" | "task" | "timeline-event" | "embed-dashboard" | "public-card" | "embed-card" | "public-action" | "user-key-value", Collection[], "metabase-api">>;
});
export { getExpandedCollectionsById, useListQuery };
export default Collections;
