import { SpotifyMyProfile, SpotifyPlaylistContents, SpotifyPlaylistMetadata } from "./types";
export declare class SpotiflyBase {
    protected token: string;
    protected tokenExpirationTimestampMs: number;
    protected cookie: string;
    private myProfileId;
    constructor(cookie?: string);
    protected refreshToken(): Promise<void>;
    private parseCookieString;
    protected fetch<T>(url: string, optionalHeaders?: {
        [index: string]: string;
    }): Promise<T>;
    protected post<T>(url: string, body: string): Promise<T>;
    protected getPlaylistMetadata(id: string, limit?: number): Promise<SpotifyPlaylistMetadata>;
    protected getPlaylistContents(id: string, limit?: number): Promise<SpotifyPlaylistContents>;
    protected getMyProfile(): Promise<SpotifyMyProfile>;
    protected getMyProfileId(): Promise<string>;
}
