import { Result } from '../auth/result.type'; import { Ordering } from '../store/useOrderingStore'; import { Collection } from '../views/collection/collection.types'; import { AssetType, Asset, MetapropertyType } from '../views/asset/asset.type'; import { Connection } from './graphql.types'; import { AssetFilterJson } from '../filter/assetFilter.type'; import { AuthInformationState } from '../auth/useAuthInformation'; import { Filter } from '../store/useAssetFilterStore'; export interface GraphqlResponse { searchAssets: { assets: Assets; }; } export interface Assets { nodes: Asset[]; totalCount: number; pageInfo: { endCursor: string; hasNextPage: boolean; }; metaproperties: { nodes: MetapropertyType[]; }; } interface Options { allAssetTypes?: AssetType[]; collection?: Collection; searchTerm?: string; filter?: Omit; predefinedFilter?: AssetFilterJson; orderBy: Ordering; language: string; isPersonal?: boolean; } export declare function useFilterAssets(options: Options, noCache?: boolean): Connection; export declare function getAssetsByMediaId(options: { ids: string[]; auth: AuthInformationState | null; language: string; noCache?: boolean; }): Promise>; export {};