import type { ExtensionTarget, ExtensionTargets } from '@shopify/ui-extensions/admin'; /** * Extracts the API type for a given admin extension target directly from the * implementation's `ExtensionTargets` interface. * * Properties prefixed with `__` are private internal APIs and are excluded * from the mock type so they cannot be relied on in test suites. */ export type ApiForAdminExtension = ExtensionTargets[T] extends { api: infer Api; } ? Omit : never; export declare function gidFromTarget(target: ExtensionTarget): string; /** * Creates a complete mock API for an admin extension target. * Each entry in the factory map is type-checked by TypeScript against * the concrete API type for that target. */ export declare function createMockAdminTargetApi(target: T): ApiForAdminExtension; //# sourceMappingURL=factories.d.ts.map