@peachy/types 2025.1.18 → 2025.2.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peachy/types",
3
- "version": "2025.01.18",
3
+ "version": "2025.02.04",
4
4
  "description": "GNOME Runtime TypeScript types",
5
5
  "main": "./types/index.d.ts",
6
6
  "exports": {
package/types/adw-1.d.ts CHANGED
@@ -12063,11 +12063,9 @@ declare module 'gi://Adw?version=1' {
12063
12063
  interface SignalSignatures extends Gtk.Application.SignalSignatures {
12064
12064
  'notify::style-manager': (pspec: GObject.ParamSpec) => void;
12065
12065
  'notify::active-window': (pspec: GObject.ParamSpec) => void;
12066
- 'notify::autosave-interval': (pspec: GObject.ParamSpec) => void;
12067
12066
  'notify::menubar': (pspec: GObject.ParamSpec) => void;
12068
12067
  'notify::register-session': (pspec: GObject.ParamSpec) => void;
12069
12068
  'notify::screensaver-active': (pspec: GObject.ParamSpec) => void;
12070
- 'notify::support-save': (pspec: GObject.ParamSpec) => void;
12071
12069
  'notify::action-group': (pspec: GObject.ParamSpec) => void;
12072
12070
  'notify::application-id': (pspec: GObject.ParamSpec) => void;
12073
12071
  'notify::flags': (pspec: GObject.ParamSpec) => void;
@@ -717,6 +717,41 @@ declare module 'gi://Gio?version=2.0' {
717
717
  */
718
718
  PASSWORD,
719
719
  }
720
+ /**
721
+ * Possible values of Explicit Congestion Notification code points.
722
+ *
723
+ * These appear in `TOS` (IPv4) or `TCLASS` (IPv6) packet headers and
724
+ * are described in [RFC 3168](https://www.rfc-editor.org/rfc/rfc3168#section-5).
725
+ */
726
+
727
+ /**
728
+ * Possible values of Explicit Congestion Notification code points.
729
+ *
730
+ * These appear in `TOS` (IPv4) or `TCLASS` (IPv6) packet headers and
731
+ * are described in [RFC 3168](https://www.rfc-editor.org/rfc/rfc3168#section-5).
732
+ */
733
+ export namespace EcnCodePoint {
734
+ export const $gtype: GObject.GType<EcnCodePoint>;
735
+ }
736
+
737
+ enum EcnCodePoint {
738
+ /**
739
+ * Not ECN-capable transport
740
+ */
741
+ NO_ECN,
742
+ /**
743
+ * ECN Capable Transport(1)
744
+ */
745
+ ECT_1,
746
+ /**
747
+ * ECN Capable Transport(0)
748
+ */
749
+ ECT_0,
750
+ /**
751
+ * Congestion Experienced
752
+ */
753
+ ECT_CE,
754
+ }
720
755
  /**
721
756
  * GEmblemOrigin is used to add information about the origin of the emblem
722
757
  * to #GEmblem.
@@ -34584,6 +34619,162 @@ declare module 'gi://Gio?version=2.0' {
34584
34619
  ): void;
34585
34620
  }
34586
34621
 
34622
+ namespace IPTosMessage {
34623
+ // Signal signatures
34624
+ interface SignalSignatures extends SocketControlMessage.SignalSignatures {}
34625
+
34626
+ // Constructor properties interface
34627
+
34628
+ interface ConstructorProps extends SocketControlMessage.ConstructorProps {}
34629
+ }
34630
+
34631
+ /**
34632
+ * Contains the type of service (ToS) byte of an IPv4 header.
34633
+ *
34634
+ * This consists of the DSCP field as per
34635
+ * [RFC 2474](https://www.rfc-editor.org/rfc/rfc2474#section-3),
34636
+ * and the ECN field as per
34637
+ * [RFC 3168](https://www.rfc-editor.org/rfc/rfc3168#section-5).
34638
+ *
34639
+ * It may be received using [method`Gio`.Socket.receive_message] over UDP sockets
34640
+ * (i.e. sockets in the `G_SOCKET_FAMILY_IPV4` family with
34641
+ * `G_SOCKET_TYPE_DATAGRAM` type). The message is not meant for sending. To set
34642
+ * ToS field to be used in datagrams sent on a [class`Gio`.Socket] use:
34643
+ * ```c
34644
+ * g_socket_set_option (socket, IPPROTO_IP, IP_TOS, <ToS value>, &error);
34645
+ * ```
34646
+ */
34647
+ class IPTosMessage extends SocketControlMessage {
34648
+ static $gtype: GObject.GType<IPTosMessage>;
34649
+
34650
+ /**
34651
+ * Compile-time signal type information.
34652
+ *
34653
+ * This instance property is generated only for TypeScript type checking.
34654
+ * It is not defined at runtime and should not be accessed in JS code.
34655
+ * @internal
34656
+ */
34657
+ $signals: IPTosMessage.SignalSignatures;
34658
+
34659
+ // Constructors
34660
+
34661
+ constructor(properties?: Partial<IPTosMessage.ConstructorProps>, ...args: any[]);
34662
+
34663
+ _init(...args: any[]): void;
34664
+
34665
+ static ['new'](dscp: number, ecn: EcnCodePoint): IPTosMessage;
34666
+
34667
+ // Signals
34668
+
34669
+ connect<K extends keyof IPTosMessage.SignalSignatures>(
34670
+ signal: K,
34671
+ callback: GObject.SignalCallback<this, IPTosMessage.SignalSignatures[K]>,
34672
+ ): number;
34673
+ connect(signal: string, callback: (...args: any[]) => any): number;
34674
+ connect_after<K extends keyof IPTosMessage.SignalSignatures>(
34675
+ signal: K,
34676
+ callback: GObject.SignalCallback<this, IPTosMessage.SignalSignatures[K]>,
34677
+ ): number;
34678
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
34679
+ emit<K extends keyof IPTosMessage.SignalSignatures>(
34680
+ signal: K,
34681
+ ...args: GObject.GjsParameters<IPTosMessage.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
34682
+ ): void;
34683
+ emit(signal: string, ...args: any[]): void;
34684
+
34685
+ // Methods
34686
+
34687
+ /**
34688
+ * Gets the differentiated services code point stored in `message`.
34689
+ * @returns A DSCP value as described in [RFC 2474](https://www.rfc-editor.org/rfc/rfc2474.html#section-3).
34690
+ */
34691
+ get_dscp(): number;
34692
+ /**
34693
+ * Gets the Explicit Congestion Notification code point stored in `message`.
34694
+ * @returns An ECN value as described in [RFC 3168](https://www.rfc-editor.org/rfc/rfc3168#section-5).
34695
+ */
34696
+ get_ecn(): EcnCodePoint;
34697
+ }
34698
+
34699
+ namespace IPv6TclassMessage {
34700
+ // Signal signatures
34701
+ interface SignalSignatures extends SocketControlMessage.SignalSignatures {}
34702
+
34703
+ // Constructor properties interface
34704
+
34705
+ interface ConstructorProps extends SocketControlMessage.ConstructorProps {}
34706
+ }
34707
+
34708
+ /**
34709
+ * Contains the Traffic Class byte of an IPv6 header.
34710
+ *
34711
+ * This consists of the DSCP field as per
34712
+ * [RFC 2474](https://www.rfc-editor.org/rfc/rfc2474#section-3),
34713
+ * and the ECN field as per
34714
+ * [RFC 3168](https://www.rfc-editor.org/rfc/rfc3168#section-5).
34715
+ *
34716
+ * It may be received using [method`Gio`.Socket.receive_message] over UDP sockets
34717
+ * (i.e. sockets in the `G_SOCKET_FAMILY_IPV6` family with
34718
+ * `G_SOCKET_TYPE_DATAGRAM` type). The message is not meant for sending. To set
34719
+ * Traffic Class field to be used in datagrams sent on a [class`Gio`.Socket] use:
34720
+ * ```c
34721
+ * g_socket_set_option (socket, IPPROTO_IPV6, IPV6_TCLASS, <TC value>, &error);
34722
+ * ```
34723
+ */
34724
+ class IPv6TclassMessage extends SocketControlMessage {
34725
+ static $gtype: GObject.GType<IPv6TclassMessage>;
34726
+
34727
+ /**
34728
+ * Compile-time signal type information.
34729
+ *
34730
+ * This instance property is generated only for TypeScript type checking.
34731
+ * It is not defined at runtime and should not be accessed in JS code.
34732
+ * @internal
34733
+ */
34734
+ $signals: IPv6TclassMessage.SignalSignatures;
34735
+
34736
+ // Constructors
34737
+
34738
+ constructor(properties?: Partial<IPv6TclassMessage.ConstructorProps>, ...args: any[]);
34739
+
34740
+ _init(...args: any[]): void;
34741
+
34742
+ static ['new'](dscp: number, ecn: EcnCodePoint): IPv6TclassMessage;
34743
+
34744
+ // Signals
34745
+
34746
+ connect<K extends keyof IPv6TclassMessage.SignalSignatures>(
34747
+ signal: K,
34748
+ callback: GObject.SignalCallback<this, IPv6TclassMessage.SignalSignatures[K]>,
34749
+ ): number;
34750
+ connect(signal: string, callback: (...args: any[]) => any): number;
34751
+ connect_after<K extends keyof IPv6TclassMessage.SignalSignatures>(
34752
+ signal: K,
34753
+ callback: GObject.SignalCallback<this, IPv6TclassMessage.SignalSignatures[K]>,
34754
+ ): number;
34755
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
34756
+ emit<K extends keyof IPv6TclassMessage.SignalSignatures>(
34757
+ signal: K,
34758
+ ...args: GObject.GjsParameters<IPv6TclassMessage.SignalSignatures[K]> extends [any, ...infer Q]
34759
+ ? Q
34760
+ : never
34761
+ ): void;
34762
+ emit(signal: string, ...args: any[]): void;
34763
+
34764
+ // Methods
34765
+
34766
+ /**
34767
+ * Gets the differentiated services code point stored in `message`.
34768
+ * @returns A DSCP value as described in [RFC 2474](https://www.rfc-editor.org/rfc/rfc2474.html#section-3).
34769
+ */
34770
+ get_dscp(): number;
34771
+ /**
34772
+ * Gets the Explicit Congestion Notification code point stored in `message`.
34773
+ * @returns An ECN value as described in [RFC 3168](https://www.rfc-editor.org/rfc/rfc3168#section-5).
34774
+ */
34775
+ get_ecn(): EcnCodePoint;
34776
+ }
34777
+
34587
34778
  namespace InetAddress {
34588
34779
  // Signal signatures
34589
34780
  interface SignalSignatures extends GObject.Object.SignalSignatures {
@@ -44473,6 +44664,9 @@ declare module 'gi://Gio?version=2.0' {
44473
44664
  * clicked.
44474
44665
  *
44475
44666
  * A notification can be sent with [method`Gio`.Application.send_notification].
44667
+ *
44668
+ * In Windows, notification actions are unsupported, when sending the notification
44669
+ * a warning will be printed if a default action or action buttons were added.
44476
44670
  */
44477
44671
  class Notification extends GObject.Object {
44478
44672
  static $gtype: GObject.GType<Notification>;
@@ -68294,6 +68488,8 @@ declare module 'gi://Gio?version=2.0' {
68294
68488
  _init(...args: any[]): void;
68295
68489
  }
68296
68490
 
68491
+ type IPTosMessageClass = typeof IPTosMessage;
68492
+ type IPv6TclassMessageClass = typeof IPv6TclassMessage;
68297
68493
  type IconIface = typeof Icon;
68298
68494
  type InetAddressClass = typeof InetAddress;
68299
68495
  type InetAddressMaskClass = typeof InetAddressMask;
@@ -4019,27 +4019,6 @@ declare module 'gi://GLib?version=2.0' {
4019
4019
  */
4020
4020
  SPACE_SEPARATOR,
4021
4021
  }
4022
- /**
4023
- * Mnemonic constants for the ends of a Unix pipe.
4024
- */
4025
-
4026
- /**
4027
- * Mnemonic constants for the ends of a Unix pipe.
4028
- */
4029
- export namespace UnixPipeEnd {
4030
- export const $gtype: GObject.GType<UnixPipeEnd>;
4031
- }
4032
-
4033
- enum UnixPipeEnd {
4034
- /**
4035
- * The readable file descriptor 0
4036
- */
4037
- READ,
4038
- /**
4039
- * The writable file descriptor 1
4040
- */
4041
- WRITE,
4042
- }
4043
4022
  /**
4044
4023
  * Error codes returned by #GUri methods.
4045
4024
  */
@@ -6423,26 +6402,6 @@ declare module 'gi://GLib?version=2.0' {
6423
6402
  * @returns %TRUE on success, %FALSE if there was an error.
6424
6403
  */
6425
6404
  function close(fd: number): boolean;
6426
- /**
6427
- * Close every file descriptor equal to or greater than `lowfd`.
6428
- *
6429
- * Typically `lowfd` will be 3, to leave standard input, standard output
6430
- * and standard error open.
6431
- *
6432
- * This is the same as Linux `close_range (lowfd, ~0U, 0)`,
6433
- * but portable to other OSs and to older versions of Linux.
6434
- * Equivalently, it is the same as BSD `closefrom (lowfd)`, but portable,
6435
- * and async-signal-safe on all OSs.
6436
- *
6437
- * This function is async-signal safe, making it safe to call from a
6438
- * signal handler or a [callback`GLib`.SpawnChildSetupFunc], as long as `lowfd` is
6439
- * non-negative.
6440
- * See [`signal(7)`](man:signal(7)) and
6441
- * [`signal-safety(7)`](man:signal-safety(7)) for more details.
6442
- * @param lowfd Minimum fd to close, which must be non-negative
6443
- * @returns 0 on success, -1 with errno set on error
6444
- */
6445
- function closefrom(lowfd: number): number;
6446
6405
  /**
6447
6406
  * Computes the checksum for a binary `data`. This is a
6448
6407
  * convenience wrapper for g_checksum_new(), g_checksum_get_string()
@@ -7063,25 +7022,6 @@ declare module 'gi://GLib?version=2.0' {
7063
7022
  error_type_copy: ErrorCopyFunc,
7064
7023
  error_type_clear: ErrorClearFunc,
7065
7024
  ): Quark;
7066
- /**
7067
- * Mark every file descriptor equal to or greater than `lowfd` to be closed
7068
- * at the next `execve()` or similar, as if via the `FD_CLOEXEC` flag.
7069
- *
7070
- * Typically `lowfd` will be 3, to leave standard input, standard output
7071
- * and standard error open after exec.
7072
- *
7073
- * This is the same as Linux `close_range (lowfd, ~0U, CLOSE_RANGE_CLOEXEC)`,
7074
- * but portable to other OSs and to older versions of Linux.
7075
- *
7076
- * This function is async-signal safe, making it safe to call from a
7077
- * signal handler or a [callback`GLib`.SpawnChildSetupFunc], as long as `lowfd` is
7078
- * non-negative.
7079
- * See [`signal(7)`](man:signal(7)) and
7080
- * [`signal-safety(7)`](man:signal-safety(7)) for more details.
7081
- * @param lowfd Minimum fd to act on, which must be non-negative
7082
- * @returns 0 on success, -1 with errno set on error
7083
- */
7084
- function fdwalk_set_cloexec(lowfd: number): number;
7085
7025
  /**
7086
7026
  * Gets a #GFileError constant based on the passed-in `err_no`.
7087
7027
  *
@@ -11621,11 +11561,11 @@ declare module 'gi://GLib?version=2.0' {
11621
11561
  * Note that this function works on bytes not characters, so it can't be used
11622
11562
  * to delimit UTF-8 strings for anything but ASCII characters.
11623
11563
  * @param string a string to split
11624
- * @param delimiters a nul-terminated byte array containing bytes that are used to split the string; can be empty (just a nul byte), which will result in no string splitting
11564
+ * @param delimiters a nul-terminated byte array containing bytes that are used to split the string; can be empty (just a nul byte), which will result in no string splitting
11625
11565
  * @param max_tokens the maximum number of tokens to split @string into. If this is less than 1, the string is split completely
11626
11566
  * @returns a newly-allocated array of strings. Use [func@GLib.strfreev] to free it.
11627
11567
  */
11628
- function strsplit_set(string: string, delimiters: string, max_tokens: number): string[];
11568
+ function strsplit_set(string: string, delimiters: Uint8Array | string, max_tokens: number): string[];
11629
11569
  /**
11630
11570
  * Searches the string `haystack` for the first occurrence
11631
11571
  * of the string `needle,` limiting the length of the search
@@ -12143,6 +12083,11 @@ declare module 'gi://GLib?version=2.0' {
12143
12083
  * @returns true if the last test subprocess terminated successfully
12144
12084
  */
12145
12085
  function test_trap_has_passed(): boolean;
12086
+ /**
12087
+ * Checks the result of the last [func`GLib`.test_trap_subprocess] call.
12088
+ * @returns true if the last test subprocess was skipped
12089
+ */
12090
+ function test_trap_has_skipped(): boolean;
12146
12091
  /**
12147
12092
  * Checks the result of the last [func`GLib`.test_trap_subprocess] call.
12148
12093
  * @returns true if the last test subprocess got killed due to a timeout
@@ -12966,133 +12911,6 @@ declare module 'gi://GLib?version=2.0' {
12966
12911
  * @returns the ISO 15924 code for @script, encoded as an integer, of zero if @script is %G_UNICODE_SCRIPT_INVALID_CODE or ISO 15924 code 'Zzzz' (script code for UNKNOWN) if @script is not understood.
12967
12912
  */
12968
12913
  function unicode_script_to_iso15924(script: UnicodeScript | null): number;
12969
- function unix_error_quark(): Quark;
12970
- /**
12971
- * Sets a function to be called when the IO condition, as specified by
12972
- * `condition` becomes true for `fd`.
12973
- *
12974
- * This is the same as g_unix_fd_add(), except that it allows you to
12975
- * specify a non-default priority and a provide a #GDestroyNotify for
12976
- * `user_data`.
12977
- * @param priority the priority of the source
12978
- * @param fd a file descriptor
12979
- * @param condition IO conditions to watch for on @fd
12980
- * @param _function a #GUnixFDSourceFunc
12981
- * @returns the ID (greater than 0) of the event source
12982
- */
12983
- function unix_fd_add_full(
12984
- priority: number,
12985
- fd: number,
12986
- condition: IOCondition | null,
12987
- _function: UnixFDSourceFunc,
12988
- ): number;
12989
- /**
12990
- * Queries the file path for the given FD opened by the current process.
12991
- * @param fd The file descriptor to query.
12992
- * @returns The file path, or `NULL` on error
12993
- */
12994
- function unix_fd_query_path(fd: number): string;
12995
- /**
12996
- * Creates a #GSource to watch for a particular I/O condition on a file
12997
- * descriptor.
12998
- *
12999
- * The source will never close the `fd` — you must do it yourself.
13000
- *
13001
- * Any callback attached to the returned #GSource must have type
13002
- * #GUnixFDSourceFunc.
13003
- * @param fd a file descriptor
13004
- * @param condition I/O conditions to watch for on @fd
13005
- * @returns the newly created #GSource
13006
- */
13007
- function unix_fd_source_new(fd: number, condition: IOCondition | null): Source;
13008
- /**
13009
- * Get the `passwd` file entry for the given `user_name` using `getpwnam_r()`.
13010
- * This can fail if the given `user_name` doesn’t exist.
13011
- *
13012
- * The returned `struct passwd` has been allocated using g_malloc() and should
13013
- * be freed using g_free(). The strings referenced by the returned struct are
13014
- * included in the same allocation, so are valid until the `struct passwd` is
13015
- * freed.
13016
- *
13017
- * This function is safe to call from multiple threads concurrently.
13018
- *
13019
- * You will need to include `pwd.h` to get the definition of `struct passwd`.
13020
- * @param user_name the username to get the passwd file entry for
13021
- * @returns passwd entry, or %NULL on error; free the returned value with g_free()
13022
- */
13023
- function unix_get_passwd_entry(user_name: string): any | null;
13024
- /**
13025
- * Similar to the UNIX pipe() call, but on modern systems like Linux
13026
- * uses the pipe2() system call, which atomically creates a pipe with
13027
- * the configured flags.
13028
- *
13029
- * As of GLib 2.78, the supported flags are `O_CLOEXEC`/`FD_CLOEXEC` (see below)
13030
- * and `O_NONBLOCK`. Prior to GLib 2.78, only `FD_CLOEXEC` was supported — if
13031
- * you wanted to configure `O_NONBLOCK` then that had to be done separately with
13032
- * `fcntl()`.
13033
- *
13034
- * Since GLib 2.80, the constants %G_UNIX_PIPE_END_READ and
13035
- * %G_UNIX_PIPE_END_WRITE can be used as mnemonic indexes in `fds`.
13036
- *
13037
- * It is a programmer error to call this function with unsupported flags, and a
13038
- * critical warning will be raised.
13039
- *
13040
- * As of GLib 2.78, it is preferred to pass `O_CLOEXEC` in, rather than
13041
- * `FD_CLOEXEC`, as that matches the underlying `pipe()` API more closely. Prior
13042
- * to 2.78, only `FD_CLOEXEC` was supported. Support for `FD_CLOEXEC` may be
13043
- * deprecated and removed in future.
13044
- * @param fds Array of two integers
13045
- * @param flags Bitfield of file descriptor flags, as for fcntl()
13046
- * @returns %TRUE on success, %FALSE if not (and errno will be set).
13047
- */
13048
- function unix_open_pipe(fds: number[], flags: number): boolean;
13049
- /**
13050
- * Control the non-blocking state of the given file descriptor,
13051
- * according to `nonblock`. On most systems this uses %O_NONBLOCK, but
13052
- * on some older ones may use %O_NDELAY.
13053
- * @param fd A file descriptor
13054
- * @param nonblock If %TRUE, set the descriptor to be non-blocking
13055
- * @returns %TRUE if successful
13056
- */
13057
- function unix_set_fd_nonblocking(fd: number, nonblock: boolean): boolean;
13058
- /**
13059
- * A convenience function for g_unix_signal_source_new(), which
13060
- * attaches to the default #GMainContext. You can remove the watch
13061
- * using g_source_remove().
13062
- * @param priority the priority of the signal source. Typically this will be in the range between %G_PRIORITY_DEFAULT and %G_PRIORITY_HIGH.
13063
- * @param signum Signal number
13064
- * @param handler Callback
13065
- * @returns An ID (greater than 0) for the event source
13066
- */
13067
- function unix_signal_add(priority: number, signum: number, handler: SourceFunc): number;
13068
- /**
13069
- * Create a #GSource that will be dispatched upon delivery of the UNIX
13070
- * signal `signum`. In GLib versions before 2.36, only `SIGHUP`, `SIGINT`,
13071
- * `SIGTERM` can be monitored. In GLib 2.36, `SIGUSR1` and `SIGUSR2`
13072
- * were added. In GLib 2.54, `SIGWINCH` was added.
13073
- *
13074
- * Note that unlike the UNIX default, all sources which have created a
13075
- * watch will be dispatched, regardless of which underlying thread
13076
- * invoked g_unix_signal_source_new().
13077
- *
13078
- * For example, an effective use of this function is to handle `SIGTERM`
13079
- * cleanly; flushing any outstanding files, and then calling
13080
- * g_main_loop_quit(). It is not safe to do any of this from a regular
13081
- * UNIX signal handler; such a handler may be invoked while malloc() or
13082
- * another library function is running, causing reentrancy issues if the
13083
- * handler attempts to use those functions. None of the GLib/GObject
13084
- * API is safe against this kind of reentrancy.
13085
- *
13086
- * The interaction of this source when combined with native UNIX
13087
- * functions like sigprocmask() is not defined.
13088
- *
13089
- * The source will not initially be associated with any #GMainContext
13090
- * and must be added to one with g_source_attach() before it will be
13091
- * executed.
13092
- * @param signum A signal number
13093
- * @returns A newly created #GSource
13094
- */
13095
- function unix_signal_source_new(signum: number): Source;
13096
12914
  /**
13097
12915
  * A wrapper for the POSIX unlink() function. The unlink() function
13098
12916
  * deletes a name from the filesystem. If this was the last link to the
@@ -14297,9 +14115,6 @@ declare module 'gi://GLib?version=2.0' {
14297
14115
  interface TraverseNodeFunc {
14298
14116
  (node: TreeNode, data?: any | null): boolean;
14299
14117
  }
14300
- interface UnixFDSourceFunc {
14301
- (fd: number, condition: IOCondition): boolean;
14302
- }
14303
14118
  interface VoidFunc {
14304
14119
  (): void;
14305
14120
  }
@@ -20632,6 +20447,22 @@ declare module 'gi://GLib?version=2.0' {
20632
20447
  * "the best number we could come up with for error messages."
20633
20448
  */
20634
20449
  get_position(): [number, number];
20450
+ /**
20451
+ * Retrieves the start position of the current start or end tag.
20452
+ *
20453
+ * This function can be used in the `start_element` or `end_element`
20454
+ * callbacks to obtain location information for error reporting.
20455
+ *
20456
+ * Note that `line_number` and `char_number` are intended for human
20457
+ * readable error messages and are therefore 1-based and in Unicode
20458
+ * characters. `offset` on the other hand is meant for programmatic
20459
+ * use, and thus is 0-based and in bytes.
20460
+ *
20461
+ * The information is meant to accompany the values returned by
20462
+ * [method`GLib`.MarkupParseContext.get_position], and comes with the
20463
+ * same accuracy guarantees.
20464
+ */
20465
+ get_tag_start(): [number, number, number];
20635
20466
  /**
20636
20467
  * Returns the user_data associated with `context`.
20637
20468
  *
@@ -26374,28 +26205,6 @@ declare module 'gi://GLib?version=2.0' {
26374
26205
  index(index_: number, field: number): any | null;
26375
26206
  }
26376
26207
 
26377
- /**
26378
- * A Unix pipe. The advantage of this type over `int[2]` is that it can
26379
- * be closed automatically when it goes out of scope, using `g_auto(GUnixPipe)`,
26380
- * on compilers that support that feature.
26381
- */
26382
- class UnixPipe {
26383
- static $gtype: GObject.GType<UnixPipe>;
26384
-
26385
- // Fields
26386
-
26387
- fds: number[];
26388
-
26389
- // Constructors
26390
-
26391
- constructor(
26392
- properties?: Partial<{
26393
- fds: number[];
26394
- }>,
26395
- );
26396
- _init(...args: any[]): void;
26397
- }
26398
-
26399
26208
  /**
26400
26209
  * The `GUri` type and related functions can be used to parse URIs into
26401
26210
  * their components, and build valid URIs from individual components.