@schematichq/schematic-react 0.2.0-rc.1 → 0.2.0-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,18 +16,68 @@ import { IStyledComponentBase } from 'styled-components/dist/types';
16
16
  import { JSX as JSX_2 } from 'react/jsx-runtime';
17
17
  import { Keys } from '@schematichq/schematic-js';
18
18
  import { default as React_2 } from 'react';
19
- import { ReactNode } from 'react';
20
19
  import { RefAttributes } from 'react';
21
20
  import { RefObject } from 'react';
22
21
  import { Schematic } from '@schematichq/schematic-js';
23
22
  import { SchematicContext } from '@schematichq/schematic-js';
24
23
  import * as SchematicJS from '@schematichq/schematic-js';
25
24
  import { SchematicOptions } from '@schematichq/schematic-js';
25
+ import { Stripe } from '@stripe/stripe-js';
26
26
  import { Substitute } from 'styled-components/dist/types';
27
27
  import { Traits } from '@schematichq/schematic-js';
28
28
 
29
+ declare interface ApiResponse<T> {
30
+ raw: Response;
31
+ value(): Promise<T>;
32
+ }
33
+
34
+ /**
35
+ * Schematic API
36
+ * Schematic API
37
+ *
38
+ * The version of the OpenAPI document: 0.1
39
+ *
40
+ *
41
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
42
+ * https://openapi-generator.tech
43
+ * Do not edit the class manually.
44
+ */
45
+ declare const BASE_PATH: string;
46
+
47
+ /**
48
+ * This is the base class for all generated API classes.
49
+ */
50
+ declare class BaseAPI {
51
+ protected configuration: Configuration;
52
+ private static readonly jsonRegex;
53
+ private middleware;
54
+ constructor(configuration?: Configuration);
55
+ withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
56
+ withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware["pre"]>): T;
57
+ withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware["post"]>): T;
58
+ /**
59
+ * Check if the given MIME is a JSON MIME.
60
+ * JSON MIME examples:
61
+ * application/json
62
+ * application/json; charset=UTF8
63
+ * APPLICATION/JSON
64
+ * application/vnd.company+json
65
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
66
+ * @return True if the given MIME is JSON, false otherwise.
67
+ */
68
+ protected isJsonMime(mime: string | null | undefined): boolean;
69
+ protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
70
+ private createFetchParams;
71
+ private fetchApi;
72
+ /**
73
+ * Create a shallow clone of `this` by constructing a new instance
74
+ * and then shallow cloning data members.
75
+ */
76
+ private clone;
77
+ }
78
+
29
79
  declare type BaseSchematicProviderProps = Omit<SchematicJS.SchematicOptions, "client" | "publishableKey"> & {
30
- children: ReactNode;
80
+ children: React_2.ReactNode;
31
81
  };
32
82
 
33
83
  /**
@@ -202,6 +252,152 @@ declare interface BillingProductDetailResponseData {
202
252
  updatedAt: Date;
203
253
  }
204
254
 
255
+ /**
256
+ * Schematic API
257
+ * Schematic API
258
+ *
259
+ * The version of the OpenAPI document: 0.1
260
+ *
261
+ *
262
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
263
+ * https://openapi-generator.tech
264
+ * Do not edit the class manually.
265
+ */
266
+ /**
267
+ *
268
+ * @export
269
+ * @interface BillingProductForSubscriptionResponseData
270
+ */
271
+ declare interface BillingProductForSubscriptionResponseData {
272
+ /**
273
+ *
274
+ * @type {string}
275
+ * @memberof BillingProductForSubscriptionResponseData
276
+ */
277
+ accountId: string;
278
+ /**
279
+ *
280
+ * @type {Date}
281
+ * @memberof BillingProductForSubscriptionResponseData
282
+ */
283
+ createdAt: Date;
284
+ /**
285
+ *
286
+ * @type {string}
287
+ * @memberof BillingProductForSubscriptionResponseData
288
+ */
289
+ currency: string;
290
+ /**
291
+ *
292
+ * @type {string}
293
+ * @memberof BillingProductForSubscriptionResponseData
294
+ */
295
+ environmentId: string;
296
+ /**
297
+ *
298
+ * @type {string}
299
+ * @memberof BillingProductForSubscriptionResponseData
300
+ */
301
+ externalId: string;
302
+ /**
303
+ *
304
+ * @type {string}
305
+ * @memberof BillingProductForSubscriptionResponseData
306
+ */
307
+ id: string;
308
+ /**
309
+ *
310
+ * @type {string}
311
+ * @memberof BillingProductForSubscriptionResponseData
312
+ */
313
+ interval?: string | null;
314
+ /**
315
+ *
316
+ * @type {string}
317
+ * @memberof BillingProductForSubscriptionResponseData
318
+ */
319
+ name: string;
320
+ /**
321
+ *
322
+ * @type {number}
323
+ * @memberof BillingProductForSubscriptionResponseData
324
+ */
325
+ price: number;
326
+ /**
327
+ *
328
+ * @type {string}
329
+ * @memberof BillingProductForSubscriptionResponseData
330
+ */
331
+ priceExternalId?: string | null;
332
+ /**
333
+ *
334
+ * @type {number}
335
+ * @memberof BillingProductForSubscriptionResponseData
336
+ */
337
+ quantity: number;
338
+ /**
339
+ *
340
+ * @type {string}
341
+ * @memberof BillingProductForSubscriptionResponseData
342
+ */
343
+ subscriptionId: string;
344
+ /**
345
+ *
346
+ * @type {Date}
347
+ * @memberof BillingProductForSubscriptionResponseData
348
+ */
349
+ updatedAt: Date;
350
+ }
351
+
352
+ /**
353
+ * Schematic API
354
+ * Schematic API
355
+ *
356
+ * The version of the OpenAPI document: 0.1
357
+ *
358
+ *
359
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
360
+ * https://openapi-generator.tech
361
+ * Do not edit the class manually.
362
+ */
363
+ /**
364
+ * The created resource
365
+ * @export
366
+ * @interface BillingSubscriptionResponseData
367
+ */
368
+ declare interface BillingSubscriptionResponseData {
369
+ /**
370
+ *
371
+ * @type {Date}
372
+ * @memberof BillingSubscriptionResponseData
373
+ */
374
+ expiredAt?: Date | null;
375
+ /**
376
+ *
377
+ * @type {string}
378
+ * @memberof BillingSubscriptionResponseData
379
+ */
380
+ externalId: string;
381
+ /**
382
+ *
383
+ * @type {number}
384
+ * @memberof BillingSubscriptionResponseData
385
+ */
386
+ id: number;
387
+ /**
388
+ *
389
+ * @type {Date}
390
+ * @memberof BillingSubscriptionResponseData
391
+ */
392
+ updatedAt: Date;
393
+ }
394
+
395
+ declare class BlobApiResponse {
396
+ raw: Response;
397
+ constructor(raw: Response);
398
+ value(): Promise<Blob>;
399
+ }
400
+
205
401
  export declare const Box: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ComponentProps>> & string;
206
402
 
207
403
  export declare type BoxProps = ComponentProps;
@@ -220,6 +416,8 @@ export declare type ButtonStyleTypes = "blue" | "white" | "red" | "black";
220
416
 
221
417
  export declare type ButtonVariantTypes = "solid" | "outline" | "ghost" | "link";
222
418
 
419
+ declare function canConsumeForm(consumes: Consume[]): boolean;
420
+
223
421
  export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement | null>>;
224
422
 
225
423
  export declare interface CardProps {
@@ -227,6 +425,118 @@ export declare interface CardProps {
227
425
  className?: string;
228
426
  }
229
427
 
428
+ /**
429
+ * Schematic API
430
+ * Schematic API
431
+ *
432
+ * The version of the OpenAPI document: 0.1
433
+ *
434
+ *
435
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
436
+ * https://openapi-generator.tech
437
+ * Do not edit the class manually.
438
+ */
439
+ /**
440
+ *
441
+ * @export
442
+ * @interface ChangeSubscriptionRequestBody
443
+ */
444
+ declare interface ChangeSubscriptionRequestBody {
445
+ /**
446
+ *
447
+ * @type {string}
448
+ * @memberof ChangeSubscriptionRequestBody
449
+ */
450
+ newPlanId: string;
451
+ /**
452
+ *
453
+ * @type {string}
454
+ * @memberof ChangeSubscriptionRequestBody
455
+ */
456
+ newPriceId: string;
457
+ /**
458
+ *
459
+ * @type {string}
460
+ * @memberof ChangeSubscriptionRequestBody
461
+ */
462
+ paymentMethodId?: string | null;
463
+ }
464
+
465
+ /**
466
+ *
467
+ */
468
+ declare class CheckoutApi extends runtime.BaseAPI {
469
+ /**
470
+ * Checkout
471
+ */
472
+ checkoutRaw(requestParameters: CheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckoutResponse>>;
473
+ /**
474
+ * Checkout
475
+ */
476
+ checkout(requestParameters: CheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckoutResponse>;
477
+ /**
478
+ * Get setup intent
479
+ */
480
+ getSetupIntentRaw(requestParameters: GetSetupIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSetupIntentResponse>>;
481
+ /**
482
+ * Get setup intent
483
+ */
484
+ getSetupIntent(requestParameters: GetSetupIntentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSetupIntentResponse>;
485
+ /**
486
+ * Hydrate component
487
+ */
488
+ hydrateComponentRaw(requestParameters: HydrateComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HydrateComponentResponse>>;
489
+ /**
490
+ * Hydrate component
491
+ */
492
+ hydrateComponent(requestParameters: HydrateComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HydrateComponentResponse>;
493
+ /**
494
+ * Preview checkout
495
+ */
496
+ previewCheckoutRaw(requestParameters: PreviewCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PreviewCheckoutResponse>>;
497
+ /**
498
+ * Preview checkout
499
+ */
500
+ previewCheckout(requestParameters: PreviewCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PreviewCheckoutResponse>;
501
+ }
502
+
503
+ declare interface CheckoutRequest {
504
+ changeSubscriptionRequestBody: ChangeSubscriptionRequestBody;
505
+ }
506
+
507
+ /**
508
+ *
509
+ * @export
510
+ * @interface CheckoutResponse
511
+ */
512
+ declare interface CheckoutResponse {
513
+ /**
514
+ *
515
+ * @type {BillingSubscriptionResponseData}
516
+ * @memberof CheckoutResponse
517
+ */
518
+ data: BillingSubscriptionResponseData;
519
+ /**
520
+ * Input parameters
521
+ * @type {object}
522
+ * @memberof CheckoutResponse
523
+ */
524
+ params: object;
525
+ }
526
+
527
+ declare const COLLECTION_FORMATS: {
528
+ csv: string;
529
+ ssv: string;
530
+ tsv: string;
531
+ pipes: string;
532
+ };
533
+
534
+ export declare const Column: ForwardRefExoticComponent<Omit<ColumnProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
535
+
536
+ export declare interface ColumnProps extends React.HTMLProps<HTMLDivElement> {
537
+ basis?: string;
538
+ }
539
+
230
540
  /**
231
541
  *
232
542
  * @export
@@ -385,6 +695,12 @@ declare interface CompanyPlanDetailResponseData {
385
695
  * @memberof CompanyPlanDetailResponseData
386
696
  */
387
697
  id: string;
698
+ /**
699
+ *
700
+ * @type {boolean}
701
+ * @memberof CompanyPlanDetailResponseData
702
+ */
703
+ isDefault: boolean;
388
704
  /**
389
705
  *
390
706
  * @type {BillingPriceResponseData}
@@ -423,6 +739,62 @@ declare interface CompanyPlanDetailResponseData {
423
739
  yearlyPrice?: BillingPriceResponseData;
424
740
  }
425
741
 
742
+ /**
743
+ *
744
+ * @export
745
+ * @interface CompanySubscriptionResponseData
746
+ */
747
+ declare interface CompanySubscriptionResponseData {
748
+ /**
749
+ *
750
+ * @type {string}
751
+ * @memberof CompanySubscriptionResponseData
752
+ */
753
+ customerExternalId: string;
754
+ /**
755
+ *
756
+ * @type {Date}
757
+ * @memberof CompanySubscriptionResponseData
758
+ */
759
+ expiredAt?: Date | null;
760
+ /**
761
+ *
762
+ * @type {string}
763
+ * @memberof CompanySubscriptionResponseData
764
+ */
765
+ interval: string;
766
+ /**
767
+ *
768
+ * @type {InvoiceResponseData}
769
+ * @memberof CompanySubscriptionResponseData
770
+ */
771
+ latestInvoice?: InvoiceResponseData;
772
+ /**
773
+ *
774
+ * @type {PaymentMethodResponseData}
775
+ * @memberof CompanySubscriptionResponseData
776
+ */
777
+ paymentMethod?: PaymentMethodResponseData;
778
+ /**
779
+ *
780
+ * @type {Array<BillingProductForSubscriptionResponseData>}
781
+ * @memberof CompanySubscriptionResponseData
782
+ */
783
+ products: Array<BillingProductForSubscriptionResponseData>;
784
+ /**
785
+ *
786
+ * @type {string}
787
+ * @memberof CompanySubscriptionResponseData
788
+ */
789
+ subscriptionExternalId: string;
790
+ /**
791
+ *
792
+ * @type {number}
793
+ * @memberof CompanySubscriptionResponseData
794
+ */
795
+ totalPrice: number;
796
+ }
797
+
426
798
  /**
427
799
  * The returned resource
428
800
  * @export
@@ -459,6 +831,18 @@ declare interface ComponentHydrateResponseData {
459
831
  * @memberof ComponentHydrateResponseData
460
832
  */
461
833
  stripeEmbed?: StripeEmbedInfo;
834
+ /**
835
+ *
836
+ * @type {CompanySubscriptionResponseData}
837
+ * @memberof ComponentHydrateResponseData
838
+ */
839
+ subscription?: CompanySubscriptionResponseData;
840
+ /**
841
+ *
842
+ * @type {InvoiceResponseData}
843
+ * @memberof ComponentHydrateResponseData
844
+ */
845
+ upcomingInvoice?: InvoiceResponseData;
462
846
  }
463
847
 
464
848
  declare interface ComponentProps extends TransientCSSProperties {
@@ -528,6 +912,22 @@ declare interface ComponentResponseData {
528
912
  updatedAt: Date;
529
913
  }
530
914
 
915
+ declare class Configuration {
916
+ private configuration;
917
+ constructor(configuration?: ConfigurationParameters);
918
+ set config(configuration: Configuration);
919
+ get basePath(): string;
920
+ get fetchApi(): FetchAPI | undefined;
921
+ get middleware(): Middleware[];
922
+ get queryParamsStringify(): (params: HTTPQuery) => string;
923
+ get username(): string | undefined;
924
+ get password(): string | undefined;
925
+ get apiKey(): ((name: string) => string | Promise<string>) | undefined;
926
+ get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
927
+ get headers(): HTTPHeaders | undefined;
928
+ get credentials(): RequestCredentials | undefined;
929
+ }
930
+
531
931
  declare interface ConfigurationParameters {
532
932
  basePath?: string;
533
933
  fetchApi?: FetchAPI;
@@ -541,6 +941,10 @@ declare interface ConfigurationParameters {
541
941
  credentials?: RequestCredentials;
542
942
  }
543
943
 
944
+ declare interface Consume {
945
+ contentType: string;
946
+ }
947
+
544
948
  declare const _default: {
545
949
  alarm: number;
546
950
  "arrow-curved": number;
@@ -641,6 +1045,8 @@ declare const _default: {
641
1045
  wind: number;
642
1046
  };
643
1047
 
1048
+ declare const DefaultConfig: Configuration;
1049
+
644
1050
  export declare const defaultSettings: EmbedSettings;
645
1051
 
646
1052
  export declare const defaultTheme: EmbedThemeSettings;
@@ -779,17 +1185,22 @@ declare interface ElementProps {
779
1185
  export declare const EmbedContext: Context<EmbedContextProps>;
780
1186
 
781
1187
  export declare interface EmbedContextProps {
782
- data: RecursivePartial<ComponentHydrateResponseData>;
1188
+ api: CheckoutApi | null;
1189
+ data: ComponentHydrateResponseData;
783
1190
  nodes: SerializedNodeWithChildren[];
784
1191
  settings: EmbedSettings;
1192
+ stripe: Promise<Stripe | null> | null;
785
1193
  layout: EmbedLayout;
786
1194
  error?: Error;
1195
+ isPending: boolean;
1196
+ hydrate: () => void;
787
1197
  setData: (data: RecursivePartial<ComponentHydrateResponseData>) => void;
788
1198
  updateSettings: (settings: RecursivePartial<EmbedSettings>) => void;
1199
+ setStripe: (stripe: Promise<Stripe | null> | null) => void;
789
1200
  setLayout: (layout: EmbedLayout) => void;
790
1201
  }
791
1202
 
792
- declare type EmbedLayout = "portal" | "checkout" | "payment" | "disabled";
1203
+ declare type EmbedLayout = "portal" | "checkout" | "payment" | "success" | "disabled";
793
1204
 
794
1205
  export declare interface EmbedProps {
795
1206
  accessToken?: string;
@@ -1408,6 +1819,12 @@ declare type FeatureUsageResponseDataAllocationTypeEnum = (typeof FeatureUsageRe
1408
1819
 
1409
1820
  declare type FetchAPI = WindowOrWorkerGlobalScope["fetch"];
1410
1821
 
1822
+ declare class FetchError extends Error {
1823
+ cause: Error;
1824
+ name: "FetchError";
1825
+ constructor(cause: Error, msg?: string);
1826
+ }
1827
+
1411
1828
  declare interface FetchParams {
1412
1829
  url: string;
1413
1830
  init: RequestInit;
@@ -1428,121 +1845,313 @@ declare interface FlagDetailResponseData {
1428
1845
  * @type {Date}
1429
1846
  * @memberof FlagDetailResponseData
1430
1847
  */
1431
- createdAt: Date;
1848
+ createdAt: Date;
1849
+ /**
1850
+ *
1851
+ * @type {boolean}
1852
+ * @memberof FlagDetailResponseData
1853
+ */
1854
+ defaultValue: boolean;
1855
+ /**
1856
+ *
1857
+ * @type {string}
1858
+ * @memberof FlagDetailResponseData
1859
+ */
1860
+ description: string;
1861
+ /**
1862
+ *
1863
+ * @type {FeatureResponseData}
1864
+ * @memberof FlagDetailResponseData
1865
+ */
1866
+ feature?: FeatureResponseData;
1867
+ /**
1868
+ *
1869
+ * @type {string}
1870
+ * @memberof FlagDetailResponseData
1871
+ */
1872
+ featureId?: string | null;
1873
+ /**
1874
+ *
1875
+ * @type {string}
1876
+ * @memberof FlagDetailResponseData
1877
+ */
1878
+ flagType: string;
1879
+ /**
1880
+ *
1881
+ * @type {string}
1882
+ * @memberof FlagDetailResponseData
1883
+ */
1884
+ id: string;
1885
+ /**
1886
+ *
1887
+ * @type {string}
1888
+ * @memberof FlagDetailResponseData
1889
+ */
1890
+ key: string;
1891
+ /**
1892
+ *
1893
+ * @type {Date}
1894
+ * @memberof FlagDetailResponseData
1895
+ */
1896
+ lastCheckedAt?: Date | null;
1897
+ /**
1898
+ *
1899
+ * @type {string}
1900
+ * @memberof FlagDetailResponseData
1901
+ */
1902
+ maintainerId?: string | null;
1903
+ /**
1904
+ *
1905
+ * @type {string}
1906
+ * @memberof FlagDetailResponseData
1907
+ */
1908
+ name: string;
1909
+ /**
1910
+ *
1911
+ * @type {Array<RuleDetailResponseData>}
1912
+ * @memberof FlagDetailResponseData
1913
+ */
1914
+ rules: Array<RuleDetailResponseData>;
1915
+ /**
1916
+ *
1917
+ * @type {Date}
1918
+ * @memberof FlagDetailResponseData
1919
+ */
1920
+ updatedAt: Date;
1921
+ }
1922
+
1923
+ export declare const Flex: IStyledComponentBase<"web", FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps> & ComponentProps, "ref"> & {
1924
+ ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
1925
+ }, never>> & string;
1926
+
1927
+ declare type FontStyle = keyof EmbedThemeSettings["typography"];
1928
+
1929
+ declare interface GetSetupIntentRequest {
1930
+ componentId: string;
1931
+ }
1932
+
1933
+ /**
1934
+ *
1935
+ * @export
1936
+ * @interface GetSetupIntentResponse
1937
+ */
1938
+ declare interface GetSetupIntentResponse {
1939
+ /**
1940
+ *
1941
+ * @type {SetupIntentResponseData}
1942
+ * @memberof GetSetupIntentResponse
1943
+ */
1944
+ data: SetupIntentResponseData;
1945
+ /**
1946
+ * Input parameters
1947
+ * @type {object}
1948
+ * @memberof GetSetupIntentResponse
1949
+ */
1950
+ params: object;
1951
+ }
1952
+
1953
+ declare type HTTPBody = Json | FormData | URLSearchParams;
1954
+
1955
+ declare type HTTPHeaders = {
1956
+ [key: string]: string;
1957
+ };
1958
+
1959
+ declare type HTTPMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD";
1960
+
1961
+ declare type HTTPQuery = {
1962
+ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
1963
+ };
1964
+
1965
+ declare type HTTPRequestInit = {
1966
+ headers?: HTTPHeaders;
1967
+ method: HTTPMethod;
1968
+ credentials?: RequestCredentials;
1969
+ body?: HTTPBody;
1970
+ };
1971
+
1972
+ declare interface HydrateComponentRequest {
1973
+ componentId: string;
1974
+ }
1975
+
1976
+ /**
1977
+ *
1978
+ * @export
1979
+ * @interface HydrateComponentResponse
1980
+ */
1981
+ declare interface HydrateComponentResponse {
1982
+ /**
1983
+ *
1984
+ * @type {ComponentHydrateResponseData}
1985
+ * @memberof HydrateComponentResponse
1986
+ */
1987
+ data: ComponentHydrateResponseData;
1988
+ /**
1989
+ * Input parameters
1990
+ * @type {object}
1991
+ * @memberof HydrateComponentResponse
1992
+ */
1993
+ params: object;
1994
+ }
1995
+
1996
+ export declare const Icon: ({ name, className, ...props }: IconProps) => JSX_2.Element;
1997
+
1998
+ export declare type IconNameTypes = keyof typeof _default;
1999
+
2000
+ export declare interface IconProps extends React.HTMLAttributes<HTMLElement> {
2001
+ name: IconNameTypes;
2002
+ }
2003
+
2004
+ export declare const IconRound: ({ name, variant, size, colors, ...props }: IconRoundProps) => JSX_2.Element;
2005
+
2006
+ export declare interface IconRoundProps extends React.HTMLAttributes<HTMLElement> {
2007
+ name: IconNameTypes;
2008
+ variant?: "outline" | "filled";
2009
+ size?: "tn" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
2010
+ colors?: [string, string];
2011
+ }
2012
+
2013
+ export declare const IncludedFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_2> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
2014
+
2015
+ export declare type IncludedFeaturesProps = DesignProps_2;
2016
+
2017
+ declare type InitOverrideFunction = (requestContext: {
2018
+ init: HTTPRequestInit;
2019
+ context: RequestOpts;
2020
+ }) => Promise<RequestInit>;
2021
+
2022
+ /**
2023
+ * Schematic API
2024
+ * Schematic API
2025
+ *
2026
+ * The version of the OpenAPI document: 0.1
2027
+ *
2028
+ *
2029
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2030
+ * https://openapi-generator.tech
2031
+ * Do not edit the class manually.
2032
+ */
2033
+ /**
2034
+ *
2035
+ * @export
2036
+ * @interface InvoiceResponseData
2037
+ */
2038
+ declare interface InvoiceResponseData {
2039
+ /**
2040
+ *
2041
+ * @type {number}
2042
+ * @memberof InvoiceResponseData
2043
+ */
2044
+ amountDue: number;
2045
+ /**
2046
+ *
2047
+ * @type {number}
2048
+ * @memberof InvoiceResponseData
2049
+ */
2050
+ amountPaid: number;
2051
+ /**
2052
+ *
2053
+ * @type {number}
2054
+ * @memberof InvoiceResponseData
2055
+ */
2056
+ amountRemaining: number;
1432
2057
  /**
1433
2058
  *
1434
- * @type {boolean}
1435
- * @memberof FlagDetailResponseData
2059
+ * @type {string}
2060
+ * @memberof InvoiceResponseData
1436
2061
  */
1437
- defaultValue: boolean;
2062
+ collectionMethod: string;
1438
2063
  /**
1439
2064
  *
1440
2065
  * @type {string}
1441
- * @memberof FlagDetailResponseData
2066
+ * @memberof InvoiceResponseData
1442
2067
  */
1443
- description: string;
2068
+ companyId?: string | null;
1444
2069
  /**
1445
2070
  *
1446
- * @type {FeatureResponseData}
1447
- * @memberof FlagDetailResponseData
2071
+ * @type {Date}
2072
+ * @memberof InvoiceResponseData
1448
2073
  */
1449
- feature?: FeatureResponseData;
2074
+ createdAt: Date;
1450
2075
  /**
1451
2076
  *
1452
2077
  * @type {string}
1453
- * @memberof FlagDetailResponseData
2078
+ * @memberof InvoiceResponseData
1454
2079
  */
1455
- featureId?: string | null;
2080
+ currency: string;
1456
2081
  /**
1457
2082
  *
1458
2083
  * @type {string}
1459
- * @memberof FlagDetailResponseData
2084
+ * @memberof InvoiceResponseData
1460
2085
  */
1461
- flagType: string;
2086
+ customerExternalId: string;
2087
+ /**
2088
+ *
2089
+ * @type {Date}
2090
+ * @memberof InvoiceResponseData
2091
+ */
2092
+ dueDate?: Date | null;
1462
2093
  /**
1463
2094
  *
1464
2095
  * @type {string}
1465
- * @memberof FlagDetailResponseData
2096
+ * @memberof InvoiceResponseData
1466
2097
  */
1467
- id: string;
2098
+ environmentId: string;
1468
2099
  /**
1469
2100
  *
1470
2101
  * @type {string}
1471
- * @memberof FlagDetailResponseData
2102
+ * @memberof InvoiceResponseData
1472
2103
  */
1473
- key: string;
2104
+ externalId?: string | null;
1474
2105
  /**
1475
2106
  *
1476
- * @type {Date}
1477
- * @memberof FlagDetailResponseData
2107
+ * @type {string}
2108
+ * @memberof InvoiceResponseData
1478
2109
  */
1479
- lastCheckedAt?: Date | null;
2110
+ id: string;
1480
2111
  /**
1481
2112
  *
1482
2113
  * @type {string}
1483
- * @memberof FlagDetailResponseData
2114
+ * @memberof InvoiceResponseData
1484
2115
  */
1485
- maintainerId?: string | null;
2116
+ paymentMethodExternalId?: string | null;
1486
2117
  /**
1487
2118
  *
1488
2119
  * @type {string}
1489
- * @memberof FlagDetailResponseData
2120
+ * @memberof InvoiceResponseData
1490
2121
  */
1491
- name: string;
2122
+ subscriptionExternalId?: string | null;
1492
2123
  /**
1493
2124
  *
1494
- * @type {Array<RuleDetailResponseData>}
1495
- * @memberof FlagDetailResponseData
2125
+ * @type {number}
2126
+ * @memberof InvoiceResponseData
1496
2127
  */
1497
- rules: Array<RuleDetailResponseData>;
2128
+ subtotal: number;
1498
2129
  /**
1499
2130
  *
1500
2131
  * @type {Date}
1501
- * @memberof FlagDetailResponseData
2132
+ * @memberof InvoiceResponseData
1502
2133
  */
1503
2134
  updatedAt: Date;
1504
2135
  }
1505
2136
 
1506
- export declare const Flex: IStyledComponentBase<"web", FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps> & ComponentProps, "ref"> & {
1507
- ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
1508
- }, never>> & string;
1509
-
1510
- declare type FontStyle = keyof EmbedThemeSettings["typography"];
1511
-
1512
- declare type HTTPHeaders = {
1513
- [key: string]: string;
1514
- };
1515
-
1516
- declare type HTTPQuery = {
1517
- [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
1518
- };
1519
-
1520
- export declare const Icon: ({ name, className, ...props }: IconProps) => JSX_2.Element;
1521
-
1522
- export declare type IconNameTypes = keyof typeof _default;
2137
+ export declare const Invoices: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
1523
2138
 
1524
- export declare interface IconProps extends React.HTMLAttributes<HTMLElement> {
1525
- name: IconNameTypes;
1526
- }
2139
+ export declare type InvoicesProps = DesignProps_6;
1527
2140
 
1528
- export declare const IconRound: ({ name, variant, size, colors, ...props }: IconRoundProps) => JSX_2.Element;
2141
+ declare type Json = any;
1529
2142
 
1530
- export declare interface IconRoundProps extends React.HTMLAttributes<HTMLElement> {
1531
- name: IconNameTypes;
1532
- variant?: "outline" | "filled";
1533
- size?: "tn" | "sm" | "md" | "lg";
1534
- colors?: [string, string];
2143
+ declare class JSONApiResponse<T> {
2144
+ raw: Response;
2145
+ private transformer;
2146
+ constructor(raw: Response, transformer?: ResponseTransformer<T>);
2147
+ value(): Promise<T>;
1535
2148
  }
1536
2149
 
1537
- export declare const IncludedFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_2> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
1538
-
1539
- export declare type IncludedFeaturesProps = DesignProps_2;
1540
-
1541
- export declare const Invoices: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
2150
+ export { Keys }
1542
2151
 
1543
- export declare type InvoicesProps = DesignProps_6;
2152
+ export declare const Loader: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
1544
2153
 
1545
- export { Keys }
2154
+ declare function mapValues(data: any, fn: (item: any) => any): {};
1546
2155
 
1547
2156
  export declare const MeteredFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_3> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
1548
2157
 
@@ -1554,12 +2163,127 @@ declare interface Middleware {
1554
2163
  onError?(context: ErrorContext): Promise<Response | void>;
1555
2164
  }
1556
2165
 
2166
+ export declare const Modal: ({ children, size, onClose }: ModalProps) => JSX_2.Element;
2167
+
2168
+ export declare const ModalHeader: ({ children, bordered, onClose, }: ModalHeaderProps) => JSX_2.Element;
2169
+
2170
+ declare interface ModalHeaderProps {
2171
+ children?: React.ReactNode;
2172
+ bordered?: boolean;
2173
+ onClose?: () => void;
2174
+ }
2175
+
2176
+ declare interface ModalProps {
2177
+ children: React.ReactNode;
2178
+ size?: "sm" | "md" | "lg" | "auto";
2179
+ onClose?: () => void;
2180
+ }
2181
+
2182
+ declare type ModelPropertyNaming = "camelCase" | "snake_case" | "PascalCase" | "original";
2183
+
1557
2184
  export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
1558
2185
  portal?: HTMLElement | null;
1559
2186
  } & RefAttributes<HTMLDivElement | null>>;
1560
2187
 
1561
2188
  export declare type PaymentMethodProps = DesignProps_5;
1562
2189
 
2190
+ /**
2191
+ * Schematic API
2192
+ * Schematic API
2193
+ *
2194
+ * The version of the OpenAPI document: 0.1
2195
+ *
2196
+ *
2197
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2198
+ * https://openapi-generator.tech
2199
+ * Do not edit the class manually.
2200
+ */
2201
+ /**
2202
+ *
2203
+ * @export
2204
+ * @interface PaymentMethodResponseData
2205
+ */
2206
+ declare interface PaymentMethodResponseData {
2207
+ /**
2208
+ *
2209
+ * @type {string}
2210
+ * @memberof PaymentMethodResponseData
2211
+ */
2212
+ cardBrand?: string | null;
2213
+ /**
2214
+ *
2215
+ * @type {number}
2216
+ * @memberof PaymentMethodResponseData
2217
+ */
2218
+ cardExpMonth?: number | null;
2219
+ /**
2220
+ *
2221
+ * @type {number}
2222
+ * @memberof PaymentMethodResponseData
2223
+ */
2224
+ cardExpYear?: number | null;
2225
+ /**
2226
+ *
2227
+ * @type {string}
2228
+ * @memberof PaymentMethodResponseData
2229
+ */
2230
+ cardLast4?: string | null;
2231
+ /**
2232
+ *
2233
+ * @type {string}
2234
+ * @memberof PaymentMethodResponseData
2235
+ */
2236
+ companyId?: string | null;
2237
+ /**
2238
+ *
2239
+ * @type {Date}
2240
+ * @memberof PaymentMethodResponseData
2241
+ */
2242
+ createdAt: Date;
2243
+ /**
2244
+ *
2245
+ * @type {string}
2246
+ * @memberof PaymentMethodResponseData
2247
+ */
2248
+ customerExternalId: string;
2249
+ /**
2250
+ *
2251
+ * @type {string}
2252
+ * @memberof PaymentMethodResponseData
2253
+ */
2254
+ environmentId: string;
2255
+ /**
2256
+ *
2257
+ * @type {string}
2258
+ * @memberof PaymentMethodResponseData
2259
+ */
2260
+ externalId: string;
2261
+ /**
2262
+ *
2263
+ * @type {string}
2264
+ * @memberof PaymentMethodResponseData
2265
+ */
2266
+ id: string;
2267
+ /**
2268
+ *
2269
+ * @type {string}
2270
+ * @memberof PaymentMethodResponseData
2271
+ */
2272
+ paymentMethodType: string;
2273
+ /**
2274
+ *
2275
+ * @type {string}
2276
+ * @memberof PaymentMethodResponseData
2277
+ */
2278
+ subscriptionExternalId?: string | null;
2279
+ /**
2280
+ *
2281
+ * @type {Date}
2282
+ * @memberof PaymentMethodResponseData
2283
+ */
2284
+ updatedAt: Date;
2285
+ }
2286
+
1563
2287
  /**
1564
2288
  *
1565
2289
  * @export
@@ -1731,6 +2455,30 @@ declare interface PlanResponseData {
1731
2455
  updatedAt: Date;
1732
2456
  }
1733
2457
 
2458
+ declare interface PreviewCheckoutRequest {
2459
+ changeSubscriptionRequestBody: ChangeSubscriptionRequestBody;
2460
+ }
2461
+
2462
+ /**
2463
+ *
2464
+ * @export
2465
+ * @interface PreviewCheckoutResponse
2466
+ */
2467
+ declare interface PreviewCheckoutResponse {
2468
+ /**
2469
+ *
2470
+ * @type {PreviewSubscriptionChangeResponseData}
2471
+ * @memberof PreviewCheckoutResponse
2472
+ */
2473
+ data: PreviewSubscriptionChangeResponseData;
2474
+ /**
2475
+ * Input parameters
2476
+ * @type {object}
2477
+ * @memberof PreviewCheckoutResponse
2478
+ */
2479
+ params: object;
2480
+ }
2481
+
1734
2482
  /**
1735
2483
  * Schematic API
1736
2484
  * Schematic API
@@ -1774,6 +2522,49 @@ declare interface PreviewObject {
1774
2522
  name: string;
1775
2523
  }
1776
2524
 
2525
+ /**
2526
+ * Schematic API
2527
+ * Schematic API
2528
+ *
2529
+ * The version of the OpenAPI document: 0.1
2530
+ *
2531
+ *
2532
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2533
+ * https://openapi-generator.tech
2534
+ * Do not edit the class manually.
2535
+ */
2536
+ /**
2537
+ * The created resource
2538
+ * @export
2539
+ * @interface PreviewSubscriptionChangeResponseData
2540
+ */
2541
+ declare interface PreviewSubscriptionChangeResponseData {
2542
+ /**
2543
+ *
2544
+ * @type {number}
2545
+ * @memberof PreviewSubscriptionChangeResponseData
2546
+ */
2547
+ dueNow: number;
2548
+ /**
2549
+ *
2550
+ * @type {number}
2551
+ * @memberof PreviewSubscriptionChangeResponseData
2552
+ */
2553
+ newCharges: number;
2554
+ /**
2555
+ *
2556
+ * @type {Date}
2557
+ * @memberof PreviewSubscriptionChangeResponseData
2558
+ */
2559
+ periodStart: Date;
2560
+ /**
2561
+ *
2562
+ * @type {number}
2563
+ * @memberof PreviewSubscriptionChangeResponseData
2564
+ */
2565
+ proration: number;
2566
+ }
2567
+
1777
2568
  export declare const ProgressBar: ({ progress, value, total, color, barWidth, ...props }: ProgressBarProps) => JSX_2.Element;
1778
2569
 
1779
2570
  export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef<typeof Flex> {
@@ -1784,6 +2575,8 @@ export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef
1784
2575
  barWidth?: string | number;
1785
2576
  }
1786
2577
 
2578
+ declare function querystring(params: HTTPQuery, prefix?: string): string;
2579
+
1787
2580
  declare type RecursivePartial<T> = {
1788
2581
  [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P];
1789
2582
  };
@@ -1794,6 +2587,20 @@ declare interface RequestContext {
1794
2587
  init: RequestInit;
1795
2588
  }
1796
2589
 
2590
+ declare interface RequestOpts {
2591
+ path: string;
2592
+ method: HTTPMethod;
2593
+ headers: HTTPHeaders;
2594
+ query?: HTTPQuery;
2595
+ body?: HTTPBody;
2596
+ }
2597
+
2598
+ declare class RequiredError extends Error {
2599
+ field: string;
2600
+ name: "RequiredError";
2601
+ constructor(field: string, msg?: string);
2602
+ }
2603
+
1797
2604
  declare interface ResponseContext {
1798
2605
  fetch: FetchAPI;
1799
2606
  url: string;
@@ -1801,6 +2608,23 @@ declare interface ResponseContext {
1801
2608
  response: Response;
1802
2609
  }
1803
2610
 
2611
+ declare class ResponseError extends Error {
2612
+ response: Response;
2613
+ name: "ResponseError";
2614
+ constructor(response: Response, msg?: string);
2615
+ }
2616
+
2617
+ declare interface ResponseTransformer<T> {
2618
+ (json: any): T;
2619
+ }
2620
+
2621
+ export declare const Root: ForwardRefExoticComponent<Omit<RootProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
2622
+
2623
+ export declare interface RootProps extends Omit<React.HTMLProps<HTMLDivElement>, "data"> {
2624
+ data?: ComponentHydrateResponseData;
2625
+ settings?: EmbedSettings;
2626
+ }
2627
+
1804
2628
  /**
1805
2629
  *
1806
2630
  * @export
@@ -2102,13 +2926,51 @@ declare interface RuleDetailResponseData {
2102
2926
  value: boolean;
2103
2927
  }
2104
2928
 
2929
+ declare namespace runtime {
2930
+ export {
2931
+ querystring,
2932
+ mapValues,
2933
+ canConsumeForm,
2934
+ BASE_PATH,
2935
+ ConfigurationParameters,
2936
+ Configuration,
2937
+ DefaultConfig,
2938
+ BaseAPI,
2939
+ ResponseError,
2940
+ FetchError,
2941
+ RequiredError,
2942
+ COLLECTION_FORMATS,
2943
+ FetchAPI,
2944
+ Json,
2945
+ HTTPMethod,
2946
+ HTTPHeaders,
2947
+ HTTPQuery,
2948
+ HTTPBody,
2949
+ HTTPRequestInit,
2950
+ ModelPropertyNaming,
2951
+ InitOverrideFunction,
2952
+ FetchParams,
2953
+ RequestOpts,
2954
+ Consume,
2955
+ RequestContext,
2956
+ ResponseContext,
2957
+ ErrorContext,
2958
+ Middleware,
2959
+ ApiResponse,
2960
+ ResponseTransformer,
2961
+ JSONApiResponse,
2962
+ VoidApiResponse,
2963
+ BlobApiResponse,
2964
+ TextApiResponse
2965
+ }
2966
+ }
2967
+
2105
2968
  export { Schematic }
2106
2969
 
2107
2970
  export { SchematicContext }
2108
2971
 
2109
2972
  declare interface SchematicContextProps {
2110
- client?: SchematicJS.Schematic;
2111
- flagValues: Record<string, boolean>;
2973
+ client: SchematicJS.Schematic;
2112
2974
  }
2113
2975
 
2114
2976
  export declare const SchematicEmbed: ({ id, accessToken, apiConfig }: EmbedProps) => JSX_2.Element;
@@ -2142,6 +3004,37 @@ declare type SerializedNodeWithChildren = SerializedNode & {
2142
3004
  children: SerializedNodeWithChildren[];
2143
3005
  };
2144
3006
 
3007
+ /**
3008
+ * Schematic API
3009
+ * Schematic API
3010
+ *
3011
+ * The version of the OpenAPI document: 0.1
3012
+ *
3013
+ *
3014
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3015
+ * https://openapi-generator.tech
3016
+ * Do not edit the class manually.
3017
+ */
3018
+ /**
3019
+ * The returned resource
3020
+ * @export
3021
+ * @interface SetupIntentResponseData
3022
+ */
3023
+ declare interface SetupIntentResponseData {
3024
+ /**
3025
+ *
3026
+ * @type {string}
3027
+ * @memberof SetupIntentResponseData
3028
+ */
3029
+ publishableKey: string;
3030
+ /**
3031
+ *
3032
+ * @type {string}
3033
+ * @memberof SetupIntentResponseData
3034
+ */
3035
+ setupIntentClientSecret?: string | null;
3036
+ }
3037
+
2145
3038
  /**
2146
3039
  * Schematic API
2147
3040
  * Schematic API
@@ -2164,18 +3057,24 @@ declare interface StripeEmbedInfo {
2164
3057
  * @type {string}
2165
3058
  * @memberof StripeEmbedInfo
2166
3059
  */
2167
- customerEkey: string;
3060
+ publishableKey: string;
2168
3061
  /**
2169
3062
  *
2170
3063
  * @type {string}
2171
3064
  * @memberof StripeEmbedInfo
2172
3065
  */
2173
- publishableKey: string;
3066
+ setupIntentClientSecret?: string | null;
2174
3067
  }
2175
3068
 
2176
3069
  declare const Text_2: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextProps>> & string;
2177
3070
  export { Text_2 as Text }
2178
3071
 
3072
+ declare class TextApiResponse {
3073
+ raw: Response;
3074
+ constructor(raw: Response);
3075
+ value(): Promise<string>;
3076
+ }
3077
+
2179
3078
  export declare interface TextProps extends ComponentProps {
2180
3079
  $align?: ComponentProps["$textAlign"];
2181
3080
  $font?: ComponentProps["$fontFamily"];
@@ -2207,12 +3106,12 @@ export declare const useEmbed: () => EmbedContextProps;
2207
3106
  export declare const useSchematic: () => SchematicContextProps;
2208
3107
 
2209
3108
  export declare const useSchematicContext: (opts?: SchematicHookOpts) => {
2210
- setContext: ((context: SchematicJS.SchematicContext) => Promise<void>) | undefined;
3109
+ setContext: (context: SchematicJS.SchematicContext) => Promise<void>;
2211
3110
  };
2212
3111
 
2213
3112
  export declare const useSchematicEvents: (opts?: SchematicHookOpts) => {
2214
- track: ((body: SchematicJS.EventBodyTrack) => Promise<void>) | undefined;
2215
- identify: ((body: SchematicJS.EventBodyIdentify) => Promise<void>) | undefined;
3113
+ track: (body: SchematicJS.EventBodyTrack) => Promise<void>;
3114
+ identify: (body: SchematicJS.EventBodyIdentify) => Promise<void>;
2216
3115
  };
2217
3116
 
2218
3117
  export declare const useSchematicFlag: (key: string, opts?: UseSchematicFlagOpts) => boolean;
@@ -2221,4 +3120,17 @@ export declare type UseSchematicFlagOpts = SchematicHookOpts & {
2221
3120
  fallback?: boolean;
2222
3121
  };
2223
3122
 
3123
+ export declare const useSchematicIsPending: (opts?: SchematicHookOpts) => boolean;
3124
+
3125
+ export declare const Viewport: ForwardRefExoticComponent<Omit<ViewportProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
3126
+
3127
+ export declare interface ViewportProps extends React.HTMLProps<HTMLDivElement> {
3128
+ }
3129
+
3130
+ declare class VoidApiResponse {
3131
+ raw: Response;
3132
+ constructor(raw: Response);
3133
+ value(): Promise<void>;
3134
+ }
3135
+
2224
3136
  export { }