import { Entity } from '../types/index.js'; import { AbstractFetchStrategy, EndpointParams, FetchOptions } from './AbstractFetchStrategy.js'; /** * The EndpointParams supported by the {@link VerifyTokenFetchStrategy} */ export interface VerifyTokenParams extends EndpointParams { authToken?: string; } /** * The TokenEntity represents a token issued by the headless wp plugin */ export interface TokenEntity extends Entity { /** * The path that the token was issued for */ path: string; /** * The post_id that the token was issued for */ post_id: number; } /** * The Verify Token strategy is used to verify tokens issued by the * headless wp plugin * * @category Data Fetching */ export declare class VerifyTokenFetchStrategy extends AbstractFetchStrategy { getDefaultEndpoint(): string; getParamsFromURL(path: string, params?: Partial): Partial; buildEndpointURL(params: Partial): string; fetcher(url: string, params: VerifyTokenParams, options?: Partial): Promise>; }