UNPKG

@stripe/ui-extension-sdk

Version:

The suite of functionality available to UI extensions in Stripe apps

17 lines (16 loc) 843 B
import type { Node } from '@remote-ui/testing'; export declare function assertIsNode(node: unknown, { expectation, isNot }: { expectation: string; isNot: boolean; }): void; export declare function assertIsType(type: unknown, { expectation, isNot }: { expectation: string; isNot: boolean; }): void; export declare function diffs(element: Node<any>[], props: Record<string, unknown>, expand?: boolean): string; export declare function printType(type: string | React.ComponentType<any>): string; export declare function diffPropsForNode(node: Node<any>, props: Record<string, unknown>, { expand }: { expand?: boolean | undefined; }): string | null; export declare function pluralize(word: string, count: number): string; export declare function printReceivedWithHighlight(text: string, start: number, length: number): string;