import type { StepHandler } from '.';
/**
* @inheritDoc importWxr
* @example
*
*
* {
* "step": "importWxr",
* "file": {
* "resource": "url",
* "url": "https://your-site.com/starter-content.wxr"
* }
* }
*
*/
export interface ImportWxrStep {
step: 'importWxr';
/** The file to import */
file: ResourceType;
/**
* Whether to fetch and import attachment files referenced by the WXR file.
*
* @default true
*/
fetchAttachments?: boolean;
/**
* Whether to rewrite imported URLs to the current site URL.
*
* @default true
*/
rewriteUrls?: boolean;
/**
* Explicit URL replacements to apply when URL rewriting is enabled.
*/
urlMapping?: Record;
/**
* Whether to import comments from the WXR file.
*
* @default true
*/
importComments?: boolean;
/**
* The fallback local user for imported authors that cannot be mapped.
*
* @default "admin"
*/
defaultAuthorUsername?: string;
/**
* How to assign imported WXR authors to local WordPress users.
*
* @default "default-author"
*/
authorsMode?: 'create' | 'default-author' | 'map';
/**
* Remote WXR author usernames keyed to existing local usernames.
*/
authorsMap?: Record;
/**
* Whether to create local users for imported WXR authors.
*
* @default false
*/
importUsers?: boolean;
/**
* The importer to use. Possible values:
*
* - `default`: The importer from https://github.com/humanmade/WordPress-Importer
* - `data-liberation`: The experimental Data Liberation WXR importer developed at
* https://github.com/WordPress/wordpress-playground/issues/1894
*
* This option is deprecated. The syntax will not be removed, but once the
* Data Liberation importer matures, it will become the only supported
* importer and the `importer` option will be ignored.
*
* @deprecated
*/
importer?: 'data-liberation' | 'default';
}
/**
* Imports a WXR file into WordPress.
*
* @param playground Playground client.
* @param file The file to import.
*/
export declare const importWxr: StepHandler>;