import { OAuthCatalogue, OAuthProviderIdType, Toolkit } from './types'; /** * OAUTH PROVIDERS */ /** * Find a provider whose `provider_id` OR internal `id` matches, case-insensitively. * Tool metadata declares its auth key inconsistently — sometimes the `provider_id` * (`reddit`), sometimes the `arcade-`-prefixed `id` (`arcade-airtable`), and the * casing does not always match the catalogue. Returns undefined when nothing * matches so callers can fall back to other branding (e.g. a toolkit icon). * * Iterating the provider list (rather than indexing the catalogue by key) also * makes inherited keys like `__proto__` or `constructor` simply not match, * instead of resolving to a built-in and crashing the caller. */ export declare const findOAuthProvider: (idOrProviderId: string | undefined) => OAuthCatalogue | undefined; /** * Find a prebuilt provider by its provider ID or internal ID, case-insensitively. */ export declare const findPrebuiltProviderByProviderId: (providerId: OAuthProviderIdType | string | undefined) => OAuthCatalogue | undefined; /** * Find a prebuilt provider by its ID (not provider ID), case-insensitively. */ export declare const findPrebuiltProviderById: (id: string | undefined) => OAuthCatalogue | undefined; /** * Check if a provider ID (or internal ID) corresponds to a prebuilt provider. */ export declare const isPrebuiltProvider: (providerId: string | undefined) => boolean; /** * Resolve a provider `provider_id` or internal `id` to its catalogue descriptor * across all providers, falling back to the generic OAuth 2.0 descriptor for * custom or unknown ones. */ export declare const resolveOAuthProvider: (providerId: string | undefined) => OAuthCatalogue; /** * TOOLKITS */ /** * Check if a toolkit name exists in the catalogue */ export declare const isKnownToolkit: (toolkitName: string | undefined) => boolean; /** * Find a toolkit by its name or ID, with case-insensitive matching * @returns Toolkit object, or undefined if not found */ export declare const findToolkitByName: (toolkitName: string | undefined) => Toolkit | undefined; //# sourceMappingURL=utils.d.ts.map