import { AllowanceType, FetchAllowancesResponse, TokenAllowance } from "@gala-chain/api"; import { GalaChainContext } from "../types"; export interface FetchAllowancesParams { collection?: string; category?: string; type?: string; additionalKey?: string; instance?: string; allowanceType?: AllowanceType; grantedTo: string; grantedBy?: string; } /** * @description * * Query allowances from on-chain World State using the provided parameters. * The results will be sorted by creation date ascending (oldest first) * * If `grantedBy` is provided, but the remaining parameters that constitute * ChainKeys 0 through 7 on the `TokenAllowance` class definition are not all * provided, this function will lookup a larger result set than is returned. * The results set pulled from World State will be filtered * by the `grantedBy` identity after lookup. * * The `@ChainKeys` that make up the World State index key are ordered, * and cannot be skipped when making partial composite key queries. * Be advised that broad queries can lead * to performance issues for large result sets. * * Non-paginated version, use `fetchAllowancesWithPagination()` if use case * expects large result sets. * * @param ctx * @param data * @returns Promise */ export declare function fetchAllowances(ctx: GalaChainContext, data: FetchAllowancesParams): Promise; /** * @description * * Query allowances from on-chain World State using the provided parameters. * The results will be sorted by creation date ascending (oldest first) * * Paginated version, replaces fetchAllowances() for use cases that * expect large result sets. Tuning the limit parameter to a reasonable * page size will optimize performance. * * @param ctx * @param data * @returns */ export declare function fetchAllowancesWithPagination(ctx: GalaChainContext, data: FetchAllowancesParams & { bookmark?: string; limit: number; }): Promise; //# sourceMappingURL=fetchAllowances.d.ts.map