2023-03-31 15:03:06 +02:00
|
|
|
import type { urlUpdateActions } from 'internal/url'
|
|
|
|
|
2023-09-23 12:48:34 +02:00
|
|
|
export interface URLBinding {
|
2023-03-31 15:03:06 +02:00
|
|
|
urlComponents: Uint32Array;
|
|
|
|
|
|
|
|
domainToASCII(input: string): string;
|
|
|
|
domainToUnicode(input: string): string;
|
2023-07-17 19:42:23 +02:00
|
|
|
canParse(input: string): boolean;
|
2023-03-31 15:03:06 +02:00
|
|
|
format(input: string, fragment?: boolean, unicode?: boolean, search?: boolean, auth?: boolean): string;
|
|
|
|
parse(input: string, base?: string): string | false;
|
|
|
|
update(input: string, actionType: typeof urlUpdateActions, value: string): string | false;
|
2023-09-23 12:48:34 +02:00
|
|
|
}
|