import { type Client } from '../core.js'; import { type RequestOptions } from '../lib/types.js'; import type { ListGrantsRequest, ListGrantsResponse, VoidGrantRequest, VoidGrantResponse } from '../models/operations/grants.js'; import type { EntitlementGrant } from '../models/types.js'; export declare class Grants { private readonly _client; constructor(_client: Client); /** * List grants * * List the grants of all customers and entitlements. To list the grants of a * single entitlement, use the customer entitlement grants endpoint. * * Deleted grants are excluded unless `include_deleted` is set. Voided and expired * grants are always included, as they are part of the balance history. * * GET /openmeter/grants */ list(request?: ListGrantsRequest, options?: RequestOptions): Promise; /** * List grants * * List the grants of all customers and entitlements. To list the grants of a * single entitlement, use the customer entitlement grants endpoint. * * Deleted grants are excluded unless `include_deleted` is set. Voided and expired * grants are always included, as they are part of the balance history. * * Iterates every item across all pages, fetching more as the returned iterable is consumed. * * GET /openmeter/grants */ listAll(request?: ListGrantsRequest, options?: RequestOptions): AsyncIterable; /** * Void grant * * Void a grant so it no longer adds to the balance. Usage already deducted from * the grant is kept. * * DELETE /openmeter/grants/{grantId} */ void(request: VoidGrantRequest, options?: RequestOptions): Promise; }