import { SkynetClient } from "./client"; import { BaseCustomOptions } from "./utils/options"; /** * Custom pin options. * * @property [endpointPin] - The relative URL path of the portal endpoint to contact. */ export declare type CustomPinOptions = BaseCustomOptions & { endpointPin?: string; }; /** * The response to a pin request. * * @property skylink - 46-character skylink. */ export declare type PinResponse = { skylink: string; }; export declare const DEFAULT_PIN_OPTIONS: { endpointPin: string; APIKey: string; skynetApiKey: string; customUserAgent: string; customCookie: string; onDownloadProgress: undefined; onUploadProgress: undefined; loginFn: undefined; }; /** * Re-pins the given skylink. * * @param this - SkynetClient * @param skylinkUrl - 46-character base64 skylink, or a valid URL that contains a skylink. * @param [customOptions] - Additional settings that can optionally be set. * @returns - The returned JSON and revision number. * @throws - Will throw if the returned signature does not match the returned entry, or if the skylink in the entry is invalid. */ export declare function pinSkylink(this: SkynetClient, skylinkUrl: string, customOptions?: CustomPinOptions): Promise; //# sourceMappingURL=pin.d.ts.map