/** * Build a {@link CoinModuleApi} method stub that always throws a standardized * "not supported" error. Use it for optional API methods a module does not implement. * * The returned function is tagged so the framework can tell it apart from a real * implementation — see {@link isNotSupportedStub}. * * @param name the API method name, used in the error message * @returns a function that throws `" is not supported"` when invoked */ export declare const notSupported: (name: string) => () => never; /** * Tells whether a value is a stub produced by {@link notSupported}, i.e. a placeholder * rather than a real implementation. * * **Limitation** — only stubs built by {@link notSupported} are detectable. A module that * hand-rolls `() => { throw new Error('x is not supported') }` inline is indistinguishable * from a real implementation, because whether a function throws cannot be known without * calling it. Modules should therefore either omit an unsupported method entirely (the * migrated shape) or build its stub with {@link notSupported}. */ export declare function isNotSupportedStub(value: unknown): boolean; //# sourceMappingURL=notSupported.d.ts.map