|
| 1 | +// Generated by wxt |
| 2 | +import "wxt/browser"; |
| 3 | + |
| 4 | +declare module "wxt/browser" { |
| 5 | + /** |
| 6 | + * See https://developer.chrome.com/docs/extensions/reference/i18n/#method-getMessage |
| 7 | + */ |
| 8 | + interface GetMessageOptions { |
| 9 | + /** |
| 10 | + * See https://developer.chrome.com/docs/extensions/reference/i18n/#method-getMessage |
| 11 | + */ |
| 12 | + escapeLt?: boolean |
| 13 | + } |
| 14 | + |
| 15 | + export interface WxtI18n extends I18n.Static { |
| 16 | + /** |
| 17 | + * The extension or app ID; you might use this string to construct URLs for resources inside the extension. Even unlocalized extensions can use this message. |
| 18 | + * Note: You can't use this message in a manifest file. |
| 19 | + * |
| 20 | + * "<browser.runtime.id>" |
| 21 | + */ |
| 22 | + getMessage( |
| 23 | + messageName: "@@extension_id", |
| 24 | + substitutions?: string | string[], |
| 25 | + options?: GetMessageOptions, |
| 26 | + ): string; |
| 27 | + /** |
| 28 | + * "<browser.i18n.getUiLocale()>" |
| 29 | + */ |
| 30 | + getMessage( |
| 31 | + messageName: "@@ui_locale", |
| 32 | + substitutions?: string | string[], |
| 33 | + options?: GetMessageOptions, |
| 34 | + ): string; |
| 35 | + /** |
| 36 | + * The text direction for the current locale, either "ltr" for left-to-right languages such as English or "rtl" for right-to-left languages such as Japanese. |
| 37 | + * |
| 38 | + * "<ltr|rtl>" |
| 39 | + */ |
| 40 | + getMessage( |
| 41 | + messageName: "@@bidi_dir", |
| 42 | + substitutions?: string | string[], |
| 43 | + options?: GetMessageOptions, |
| 44 | + ): string; |
| 45 | + /** |
| 46 | + * If the @@bidi_dir is "ltr", then this is "rtl"; otherwise, it's "ltr". |
| 47 | + * |
| 48 | + * "<rtl|ltr>" |
| 49 | + */ |
| 50 | + getMessage( |
| 51 | + messageName: "@@bidi_reversed_dir", |
| 52 | + substitutions?: string | string[], |
| 53 | + options?: GetMessageOptions, |
| 54 | + ): string; |
| 55 | + /** |
| 56 | + * If the @@bidi_dir is "ltr", then this is "left"; otherwise, it's "right". |
| 57 | + * |
| 58 | + * "<left|right>" |
| 59 | + */ |
| 60 | + getMessage( |
| 61 | + messageName: "@@bidi_start_edge", |
| 62 | + substitutions?: string | string[], |
| 63 | + options?: GetMessageOptions, |
| 64 | + ): string; |
| 65 | + /** |
| 66 | + * If the @@bidi_dir is "ltr", then this is "right"; otherwise, it's "left". |
| 67 | + * |
| 68 | + * "<right|left>" |
| 69 | + */ |
| 70 | + getMessage( |
| 71 | + messageName: "@@bidi_end_edge", |
| 72 | + substitutions?: string | string[], |
| 73 | + options?: GetMessageOptions, |
| 74 | + ): string; |
| 75 | + getMessage( |
| 76 | + messageName: "@@extension_id" | "@@ui_locale" | "@@bidi_dir" | "@@bidi_reversed_dir" | "@@bidi_start_edge" | "@@bidi_end_edge", |
| 77 | + substitutions?: string | string[], |
| 78 | + options?: GetMessageOptions, |
| 79 | + ): string; |
| 80 | + } |
| 81 | +} |
0 commit comments