import type { CanonicalObjectTypeRef } from '@xemahq/kernel-contracts/canonical-object'; import type { MintedToken, ResourceRef } from '@xemahq/kernel-contracts/connector'; import type { Result } from './result'; export interface ResourceLister { readonly type: string; list(input: ResourceListInput): AsyncIterable>; readonly canonical?: ResourceCanonicalMapper; } export interface ResourceCanonicalMapper { readonly objectType: CanonicalObjectTypeRef; toCanonical(item: ResourceListItem): Result>; } export interface ResourceListInput { readonly credential: MintedToken; readonly query?: string; readonly parentResource?: ResourceRef; readonly cursor?: string; readonly pageSize?: number; } export interface ResourceListItem { readonly id: string; readonly label: string; readonly description?: string; readonly metadata?: Readonly>; } export interface ResourceTypeRef { readonly adapterKind: string; readonly provider: string; readonly type: string; } //# sourceMappingURL=resource.d.ts.map