/**
 * Returns the state of the Promise, one of:
 * - pending
 * - resolved
 * - rejected
 *
 * Based on: https://makandracards.com/makandra/46681-javascript-how-to-query-the-state-of-a-native-promise
 */
export declare function pState(p: Promise<any>): Promise<'resolved' | 'rejected' | 'pending'>;
