index.d.mts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. import * as vue from 'vue';
  2. import { ComponentPropsOptions, ExtractPropTypes } from 'vue';
  3. interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
  4. filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
  5. }
  6. type ClassValue = any;
  7. declare const VLocaleProvider: {
  8. new (...args: any[]): vue.CreateComponentPublicInstance<{
  9. style: vue.StyleValue;
  10. } & {
  11. rtl?: boolean | undefined;
  12. class?: any;
  13. locale?: string | undefined;
  14. fallbackLocale?: string | undefined;
  15. messages?: Record<string, any> | undefined;
  16. } & {
  17. $children?: vue.VNodeChild | {
  18. default?: (() => vue.VNodeChild) | undefined;
  19. } | (() => vue.VNodeChild);
  20. 'v-slots'?: {
  21. default?: false | (() => vue.VNodeChild) | undefined;
  22. } | undefined;
  23. } & {
  24. "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
  25. }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
  26. style: vue.StyleValue;
  27. } & {
  28. rtl?: boolean | undefined;
  29. class?: any;
  30. locale?: string | undefined;
  31. fallbackLocale?: string | undefined;
  32. messages?: Record<string, any> | undefined;
  33. } & {
  34. $children?: vue.VNodeChild | {
  35. default?: (() => vue.VNodeChild) | undefined;
  36. } | (() => vue.VNodeChild);
  37. 'v-slots'?: {
  38. default?: false | (() => vue.VNodeChild) | undefined;
  39. } | undefined;
  40. } & {
  41. "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
  42. }, {
  43. rtl: boolean;
  44. style: vue.StyleValue;
  45. }, true, {}, vue.SlotsType<Partial<{
  46. default: () => vue.VNode[];
  47. }>>, {
  48. P: {};
  49. B: {};
  50. D: {};
  51. C: {};
  52. M: {};
  53. Defaults: {};
  54. }, {
  55. style: vue.StyleValue;
  56. } & {
  57. rtl?: boolean | undefined;
  58. class?: any;
  59. locale?: string | undefined;
  60. fallbackLocale?: string | undefined;
  61. messages?: Record<string, any> | undefined;
  62. } & {
  63. $children?: vue.VNodeChild | {
  64. default?: (() => vue.VNodeChild) | undefined;
  65. } | (() => vue.VNodeChild);
  66. 'v-slots'?: {
  67. default?: false | (() => vue.VNodeChild) | undefined;
  68. } | undefined;
  69. } & {
  70. "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
  71. }, {}, {}, {}, {}, {
  72. rtl: boolean;
  73. style: vue.StyleValue;
  74. }>;
  75. __isFragment?: never;
  76. __isTeleport?: never;
  77. __isSuspense?: never;
  78. } & vue.ComponentOptionsBase<{
  79. style: vue.StyleValue;
  80. } & {
  81. rtl?: boolean | undefined;
  82. class?: any;
  83. locale?: string | undefined;
  84. fallbackLocale?: string | undefined;
  85. messages?: Record<string, any> | undefined;
  86. } & {
  87. $children?: vue.VNodeChild | {
  88. default?: (() => vue.VNodeChild) | undefined;
  89. } | (() => vue.VNodeChild);
  90. 'v-slots'?: {
  91. default?: false | (() => vue.VNodeChild) | undefined;
  92. } | undefined;
  93. } & {
  94. "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
  95. }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
  96. rtl: boolean;
  97. style: vue.StyleValue;
  98. }, {}, string, vue.SlotsType<Partial<{
  99. default: () => vue.VNode[];
  100. }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
  101. class: vue.PropType<ClassValue>;
  102. style: {
  103. type: vue.PropType<vue.StyleValue>;
  104. default: null;
  105. };
  106. locale: StringConstructor;
  107. fallbackLocale: StringConstructor;
  108. messages: ObjectConstructor;
  109. rtl: {
  110. type: BooleanConstructor;
  111. default: undefined;
  112. };
  113. }, vue.ExtractPropTypes<{
  114. class: vue.PropType<ClassValue>;
  115. style: {
  116. type: vue.PropType<vue.StyleValue>;
  117. default: null;
  118. };
  119. locale: StringConstructor;
  120. fallbackLocale: StringConstructor;
  121. messages: ObjectConstructor;
  122. rtl: {
  123. type: BooleanConstructor;
  124. default: undefined;
  125. };
  126. }>>;
  127. type VLocaleProvider = InstanceType<typeof VLocaleProvider>;
  128. export { VLocaleProvider };