mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-02-01 03:40:30 +07:00
* Initial plan * Run npm ci --ignore-scripts to update dependencies Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com> * Convert CommonJS to ESM (#255) * Initial plan * Convert CommonJS imports to ESM Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com> * Use node: protocol prefix for built-in modules Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
26 lines
1.0 KiB
TypeScript
26 lines
1.0 KiB
TypeScript
import * as http from 'http';
|
|
import * as ifm from './interfaces.js';
|
|
import { HttpClientResponse } from './index.js';
|
|
export declare class BasicCredentialHandler implements ifm.RequestHandler {
|
|
username: string;
|
|
password: string;
|
|
constructor(username: string, password: string);
|
|
prepareRequest(options: http.RequestOptions): void;
|
|
canHandleAuthentication(): boolean;
|
|
handleAuthentication(): Promise<HttpClientResponse>;
|
|
}
|
|
export declare class BearerCredentialHandler implements ifm.RequestHandler {
|
|
token: string;
|
|
constructor(token: string);
|
|
prepareRequest(options: http.RequestOptions): void;
|
|
canHandleAuthentication(): boolean;
|
|
handleAuthentication(): Promise<HttpClientResponse>;
|
|
}
|
|
export declare class PersonalAccessTokenCredentialHandler implements ifm.RequestHandler {
|
|
token: string;
|
|
constructor(token: string);
|
|
prepareRequest(options: http.RequestOptions): void;
|
|
canHandleAuthentication(): boolean;
|
|
handleAuthentication(): Promise<HttpClientResponse>;
|
|
}
|